how to get data of one image in a Matrix of images

4 views (last 30 days)
After applying a gabor filter, I have a matrix 5X8 of images, I want to use the image located at position (5,5). how can I save or assign it in a new variable.?
The source code that display this matrix 5X8 images is
for i = 1:u
for j = 1:v
subplot(u,v,(i-1)*v+j)
imshow(abs(gaborResult{i,j}),[]);
end
end
The results
From my knowledge I can display this image at position (5,5) using the imshow
imshow(abs(gaborResult{5,5}),[]);
but I would like any help on how I can save this in a variable for further use... any help of yours is appreciated

Accepted Answer

Thorsten
Thorsten on 5 Sep 2016
X = abs(gaborResult{5,5});
  4 Comments
Image Analyst
Image Analyst on 5 Sep 2016
imshow(img, []) scales the image prior to display so that the min value of the image maps to 0 and the max value maps to 255 and the values in between are scaled linearly between 1 and 254. If you have a floating point image, and any values are above 1 then they will display as white and values less than 0 will display as black. This is because it expects floating point images to be in the range 0-1 and if they're not it clips them to black or white. This is why you use [] -- to see the entire dynamic range.
Gilles KABANO
Gilles KABANO on 5 Sep 2016
Thank you all!! Thorsten and Image Analyst for your additive comments.. Now, I got good results

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!