Error -Reference to non-existent field
Show older comments
I have a code taken from internet
filename=Lenna.bmp
info=imfinfo(filename);
mingrayvalue=info.MinSampleValue;
maxgrayvalue=info.MaxSampleValue;
graynum=maxgrayvalue-mingrayvalue+1;
I get error
Reference to non-existent field 'MinSampleValue'.
Please provide assistance
1 Comment
Jan
on 3 May 2012
You forgot to ask a question.
Accepted Answer
More Answers (1)
Jan
on 3 May 2012
1 vote
Does the reply of IMFINFO provide a field "MinSampleValue" for other pictures? See http://www.mathworks.com/help/techdoc/ref/imfinfo.html
Categories
Find more on MATLAB 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!