{"action":"created","issue":{"url":"https://api.github.com/repos/opencv/opencv/issues/7025","repository_url":"https://api.github.com/repos/opencv/opencv","labels_url":"https://api.github.com/repos/opencv/opencv/issues/7025/labels{/name}","comments_url":"https://api.github.com/repos/opencv/opencv/issues/7025/comments","events_url":"https://api.github.com/repos/opencv/opencv/issues/7025/events","html_url":"https://github.com/opencv/opencv/issues/7025","id":168857681,"number":7025,"title":"loading 32 bit TIFF requires imread flags to be set","user":{"login":"mixmixmix","id":9990867,"avatar_url":"https://avatars.githubusercontent.com/u/9990867?v=3","gravatar_id":"","url":"https://api.github.com/users/mixmixmix","html_url":"https://github.com/mixmixmix","followers_url":"https://api.github.com/users/mixmixmix/followers","following_url":"https://api.github.com/users/mixmixmix/following{/other_user}","gists_url":"https://api.github.com/users/mixmixmix/gists{/gist_id}","starred_url":"https://api.github.com/users/mixmixmix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixmixmix/subscriptions","organizations_url":"https://api.github.com/users/mixmixmix/orgs","repos_url":"https://api.github.com/users/mixmixmix/repos","events_url":"https://api.github.com/users/mixmixmix/events{/privacy}","received_events_url":"https://api.github.com/users/mixmixmix/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/opencv/opencv/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/opencv/opencv/labels/category:%20highgui-images","name":"category: highgui-images","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-02T10:59:16Z","updated_at":"2016-08-22T09:02:04Z","closed_at":null,"body":"According to the documentation flag `IMREAD_ANYDEPTH ` \r\n\r\n> If set, return 16-bit/32-bit image when the input has the corresponding depth, otherwise convert it to 8-bit\r\n\r\nWhen reading 32bit TIFF image without any flags the image should load and get converted to 8bit. In practice however image is empty.\r\nWhen flag `IMREAD_ANYDEPTH ` is set the image loads correctly as a 32bit float.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/opencv/opencv/issues/comments/241353594","html_url":"https://github.com/opencv/opencv/issues/7025#issuecomment-241353594","issue_url":"https://api.github.com/repos/opencv/opencv/issues/7025","id":241353594,"user":{"login":"mshabunin","id":3304494,"avatar_url":"https://avatars.githubusercontent.com/u/3304494?v=3","gravatar_id":"","url":"https://api.github.com/users/mshabunin","html_url":"https://github.com/mshabunin","followers_url":"https://api.github.com/users/mshabunin/followers","following_url":"https://api.github.com/users/mshabunin/following{/other_user}","gists_url":"https://api.github.com/users/mshabunin/gists{/gist_id}","starred_url":"https://api.github.com/users/mshabunin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshabunin/subscriptions","organizations_url":"https://api.github.com/users/mshabunin/orgs","repos_url":"https://api.github.com/users/mshabunin/repos","events_url":"https://api.github.com/users/mshabunin/events{/privacy}","received_events_url":"https://api.github.com/users/mshabunin/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T09:02:03Z","updated_at":"2016-08-22T09:02:03Z","body":"@Asalle , please take a look at the `TiffDecoder::readData( Mat& img )` function. It should fill incoming image with correct data, but for some reason in case when actual TIFF has 32-bit depth and target image 8-bit depth, the decoding process fails."}}
{"actor":{"display_login":"mshabunin"}}