{"action":"created","issue":{"url":"https://api.github.com/repos/pydicom/pydicom/issues/622","repository_url":"https://api.github.com/repos/pydicom/pydicom","labels_url":"https://api.github.com/repos/pydicom/pydicom/issues/622/labels{/name}","comments_url":"https://api.github.com/repos/pydicom/pydicom/issues/622/comments","events_url":"https://api.github.com/repos/pydicom/pydicom/issues/622/events","html_url":"https://github.com/pydicom/pydicom/issues/622","id":315027845,"number":622,"title":"Extracting ROI pixel Value from a directory","user":{"login":"nature01","id":38462280,"avatar_url":"https://avatars0.githubusercontent.com/u/38462280?v=4","gravatar_id":"","url":"https://api.github.com/users/nature01","html_url":"https://github.com/nature01","followers_url":"https://api.github.com/users/nature01/followers","following_url":"https://api.github.com/users/nature01/following{/other_user}","gists_url":"https://api.github.com/users/nature01/gists{/gist_id}","starred_url":"https://api.github.com/users/nature01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nature01/subscriptions","organizations_url":"https://api.github.com/users/nature01/orgs","repos_url":"https://api.github.com/users/nature01/repos","events_url":"https://api.github.com/users/nature01/events{/privacy}","received_events_url":"https://api.github.com/users/nature01/received_events","type":"User","site_admin":false},"labels":[{"id":63501235,"url":"https://api.github.com/repos/pydicom/pydicom/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-04-17T11:59:39Z","updated_at":"2018-04-17T14:32:40Z","closed_at":null,"author_association":"NONE","body":"Hi Everyone,\r\n\r\n i have a directory with  189 DICOM data and i want to extract all the pixel Value in a specific ROI from all the DICOM Images , i used to do this for one image and that´s working.\r\ni tried to open the directory and to switch it into numpy Array but i couldnt have any results.\r\n\r\nThis how looks my first try:\r\n\r\nimport os \r\nimport pydicom\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\ndirname = 'C:\\Python27\\DICOM\\ST000000\\SE000013/'\r\nfiles = os.listdir(dirname)\r\nds_list = [pydicom.dcmread(os.path.join(dirname, filename) ) for filename in files]\r\n\r\n\r\nThanks !\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pydicom/pydicom/issues/comments/382014612","html_url":"https://github.com/pydicom/pydicom/issues/622#issuecomment-382014612","issue_url":"https://api.github.com/repos/pydicom/pydicom/issues/622","id":382014612,"user":{"login":"mrbean-bremen","id":4623701,"avatar_url":"https://avatars1.githubusercontent.com/u/4623701?v=4","gravatar_id":"","url":"https://api.github.com/users/mrbean-bremen","html_url":"https://github.com/mrbean-bremen","followers_url":"https://api.github.com/users/mrbean-bremen/followers","following_url":"https://api.github.com/users/mrbean-bremen/following{/other_user}","gists_url":"https://api.github.com/users/mrbean-bremen/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbean-bremen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbean-bremen/subscriptions","organizations_url":"https://api.github.com/users/mrbean-bremen/orgs","repos_url":"https://api.github.com/users/mrbean-bremen/repos","events_url":"https://api.github.com/users/mrbean-bremen/events{/privacy}","received_events_url":"https://api.github.com/users/mrbean-bremen/received_events","type":"User","site_admin":false},"created_at":"2018-04-17T14:32:40Z","updated_at":"2018-04-17T14:32:40Z","author_association":"MEMBER","body":"You wrote that you succeeded with one file - how did you do that? Ot was that another file?"}}
{"actor":{"display_login":"mrbean-bremen"}}