{"action":"created","issue":{"url":"https://api.github.com/repos/vlfeat/matconvnet/issues/286","labels_url":"https://api.github.com/repos/vlfeat/matconvnet/issues/286/labels{/name}","comments_url":"https://api.github.com/repos/vlfeat/matconvnet/issues/286/comments","events_url":"https://api.github.com/repos/vlfeat/matconvnet/issues/286/events","html_url":"https://github.com/vlfeat/matconvnet/issues/286","id":110612624,"number":286,"title":"is   vl_imreadjpeg() get the right image ?","user":{"login":"taopanpan","id":5576741,"avatar_url":"https://avatars.githubusercontent.com/u/5576741?v=3","gravatar_id":"","url":"https://api.github.com/users/taopanpan","html_url":"https://github.com/taopanpan","followers_url":"https://api.github.com/users/taopanpan/followers","following_url":"https://api.github.com/users/taopanpan/following{/other_user}","gists_url":"https://api.github.com/users/taopanpan/gists{/gist_id}","starred_url":"https://api.github.com/users/taopanpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taopanpan/subscriptions","organizations_url":"https://api.github.com/users/taopanpan/orgs","repos_url":"https://api.github.com/users/taopanpan/repos","events_url":"https://api.github.com/users/taopanpan/events{/privacy}","received_events_url":"https://api.github.com/users/taopanpan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-09T08:34:08Z","updated_at":"2015-10-10T12:19:56Z","closed_at":null,"body":"when I  run this program in windows, get a strange result, it show the vl_imreadjpeg() get the image \r\n with a single value , seems like matlab's imread() function convert the uint8 to single . is there any problem?\r\n\r\na{1} = which('peppers.png') ;\r\n% load and preprocess an image\r\nim = imread(a{1}) ;\r\n%im = single(im);\r\nfigure(1) ; imshow(im) ;\r\nim_= vl_imreadjpeg(a) ;\r\nim_ = im_{1,1};\r\nfigure(2) ;  imshow(im_) ;"},"comment":{"url":"https://api.github.com/repos/vlfeat/matconvnet/issues/comments/147084436","html_url":"https://github.com/vlfeat/matconvnet/issues/286#issuecomment-147084436","issue_url":"https://api.github.com/repos/vlfeat/matconvnet/issues/286","id":147084436,"user":{"login":"nicjac","id":3091276,"avatar_url":"https://avatars.githubusercontent.com/u/3091276?v=3","gravatar_id":"","url":"https://api.github.com/users/nicjac","html_url":"https://github.com/nicjac","followers_url":"https://api.github.com/users/nicjac/followers","following_url":"https://api.github.com/users/nicjac/following{/other_user}","gists_url":"https://api.github.com/users/nicjac/gists{/gist_id}","starred_url":"https://api.github.com/users/nicjac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicjac/subscriptions","organizations_url":"https://api.github.com/users/nicjac/orgs","repos_url":"https://api.github.com/users/nicjac/repos","events_url":"https://api.github.com/users/nicjac/events{/privacy}","received_events_url":"https://api.github.com/users/nicjac/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T12:19:56Z","updated_at":"2015-10-10T12:19:56Z","body":"I understand that but myself and people in my field (X-ray imaging) routinely use 16-bit (or higher) images. If saved as 8-bit, there will be a significant loss of precision (and we actually showed that it impacts the performance of our trained CNNs). I know that for most applications with photographic images this is not needed, but CNNs are getting very popular in fields working with scientific images, which are very rarely 8-bit.\r\n\r\nDoes it make sense?\r\n\r\nThe argument for simplicity is a good one though. I might just write my own custom version of \"vl_imreadjpeg\" to fit my needs as it is probably still a niche case.\r\n\r\n"}}