how to get data of one image in a Matrix of images
4 views (last 30 days)
Show older comments
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
0 Comments
Accepted Answer
Thorsten
on 5 Sep 2016
X = abs(gaborResult{5,5});
4 Comments
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.
More Answers (0)
See Also
Categories
Find more on Blue in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
