Why got different value when use imread to read a binary image that saved by imwrite??
Show older comments
Hey, to be able to make a binary image, i used I=zeros(256,256); and then i changed some value in I to 1,then use imshow(I) to check the result,it looks good. i got the binary image i want. the i use imwrite(I,'result.jpg','jpg')to save the result, also succeed. here is the problem, i use H=imread('result,jpg'); to read the file, but when I check the H array, i found that the pixel value are not just 0 and 255, they also include like 2, 4,5,9 ,250, 253, these kind of value. why does it changed like this? jpg compression problem? thanks very much
Accepted Answer
More Answers (0)
Categories
Find more on Image Segmentation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!