how to get data of one image in a Matrix of images
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Thorsten
2016-9-5
X = abs(gaborResult{5,5});
4 个评论
Image Analyst
2016-9-5
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Blue 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!