hello i need display 197 image in matlab

3 ビュー (過去 30 日間)
fatima ali
fatima ali 2015 年 3 月 14 日
コメント済み: Image Analyst 2015 年 3 月 17 日
i need display 197 image in matlab .....How is this work....
I want to display in one screen

回答 (3 件)

Image Analyst
Image Analyst 2015 年 3 月 14 日
I'm not sure of the grammar, which is ambiguous, so I'll answer two possible interpretations:
If you want the 197 in the overlay above the image, use text()
text(x, y, '197');
If you need the "197" "burned into the image", then you can use this: http://www.mathworks.com/matlabcentral/fileexchange/38721-embed-text-and-graphics-in-an-image or else use the insertText method in the Computer Vision System Toolbox.
Alternatively if you want to display 197 images stitched together in one image, then you can use the montage() function in the Image Processing Toolbox, though you might run out of memory with that many images. Alternatively you can stitch them together after subsampling
wideImage = [image1(1:4:end, 1:4:end), image2(1:4:end, 1:4:end)];
tallImage = [image1(1:4:end, 1:4:end); image2(1:4:end, 1:4:end)];
Repeat until you've gotten all 197 of your images in there.
  6 件のコメント
fatima ali
fatima ali 2015 年 3 月 17 日
Thanks image analyst i found a solution to the problem
Image Analyst
Image Analyst 2015 年 3 月 17 日
inf means "infinity" to MATLAB and is a reserved variable, though it can be blown away by defining your own variable with that name (something you do NOT want to do).

サインインしてコメントする。


Dima Lisin
Dima Lisin 2015 年 3 月 16 日
Hi Fatima,
If you need to look at so many images, then the easiest thing is to save each grayscale image to a file, and look at the thumbnails using Windows Explorer. Another point, please try not to use inf as a variable name, because in MATLAB inf is a keyword denoting infinity.
  1 件のコメント
fatima ali
fatima ali 2015 年 3 月 17 日
Thanks i found a solution to the problem

サインインしてコメントする。


Nikolay S.
Nikolay S. 2015 年 3 月 17 日
編集済み: Nikolay S. 2015 年 3 月 17 日
Hi there. When I had to review multiple images at once I've concatenated then into a mosaic/tile. You can try my function . You can save the image and then open it with any photo viewer/editor. Another way is to present several images in a single "figure" using subplot and "imshow". I prefer to present given number of figures at a time with a loop of this kind
nFigures = 5;
nPlotsPerFig = 9;
nFigs = ceil(197/nPlotsPerFig);
for iFig = 1: nFigs
presentPlots(); % sub-function with a loop presenting all relevant figure images
if mod(iFig, nFigures)==0
pause; % wait until user reviews all figures and presses any key
close all;
end
end
To present images of maximal dimensions I have my subplot_tight function.
Hope this helps, Nikolay
  1 件のコメント
fatima ali
fatima ali 2015 年 3 月 17 日
Thanks Nikolay ..... I used the second method you Yesterday to resolve the problem

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Processing and Computer Vision についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by