{"action":"closed","issue":{"url":"https://api.github.com/repos/pydicom/pydicom/issues/357","repository_url":"https://api.github.com/repos/pydicom/pydicom","labels_url":"https://api.github.com/repos/pydicom/pydicom/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/pydicom/pydicom/issues/357/comments","events_url":"https://api.github.com/repos/pydicom/pydicom/issues/357/events","html_url":"https://github.com/pydicom/pydicom/issues/357","id":231747836,"number":357,"title":"pixel_array output is a distorted image","user":{"login":"hi-im-ryanli","id":10702581,"avatar_url":"https://avatars2.githubusercontent.com/u/10702581?v=3","gravatar_id":"","url":"https://api.github.com/users/hi-im-ryanli","html_url":"https://github.com/hi-im-ryanli","followers_url":"https://api.github.com/users/hi-im-ryanli/followers","following_url":"https://api.github.com/users/hi-im-ryanli/following{/other_user}","gists_url":"https://api.github.com/users/hi-im-ryanli/gists{/gist_id}","starred_url":"https://api.github.com/users/hi-im-ryanli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hi-im-ryanli/subscriptions","organizations_url":"https://api.github.com/users/hi-im-ryanli/orgs","repos_url":"https://api.github.com/users/hi-im-ryanli/repos","events_url":"https://api.github.com/users/hi-im-ryanli/events{/privacy}","received_events_url":"https://api.github.com/users/hi-im-ryanli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-05-26T22:25:38Z","updated_at":"2017-06-02T02:19:52Z","closed_at":"2017-06-02T02:19:52Z","body":"I am working with a  `.dcm` file which contains a colored image. After decompressing the image with `gdcm`, I re-loaded the file with `pydicom` and plotted the image - it looks like this:\r\n\r\n![face](https://cloud.githubusercontent.com/assets/10702581/26514525/007c68d0-4238-11e7-9d34-b531a16d0f6c.png)\r\n\r\nI am wondering if I did something wrong?\r\n\r\ncode:\r\n\r\n```\r\ntemp = dicom.read_file(tempPath)\r\nimage = temp.pixel_array\r\n# reshape the image so that matlibplot doesn't freak out\r\nimage = np.transpose(image, (1, 2, 0))\r\nmisc.imsave('face.png', image)\r\n\r\n```\r\n\r\n**Update:**\r\nSince my image is colored, the shape of the image is `(3, 3180, 2400)`. That is why I am using `np.transpose` to reshape it.\r\n\r\nThis is the metadata in the `.dcm` file:\r\n![screenshot from 2017-05-26 17-28-57](https://cloud.githubusercontent.com/assets/10702581/26514662/d6226b6a-4238-11e7-831d-245a78c550d6.png)\r\n"}}
{"actor":{"display_login":"darcymason"}}