how can i place 25 image by using in one mask in successive manner?

1 次查看(过去 30 天)
how can i place 25 images in one mask.it will be in row wise in that mask?

采纳的回答

José-Luis
José-Luis 2017-8-11
This is how I interpret your question.
imageSize = [256,256];
numImages = 25;
result = zeros(numImages,imageSize(1),imageSize(2));
for ii = 1:numImages;
currentImage = rand(imageSize);
result(ii,:,:) = currentImage;
end
Vertically stacked images.
  3 个评论
Som
Som 2017-8-14
i was trying to show the output image but error is coming. imshow(result) i added after the loop to show the image.
Image Analyst
Image Analyst 2017-8-14
I see you've accepted this answer so I assume you no longer have any errors.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by