Using repmat instead of subplot - adding grid lines and points

4 次查看(过去 30 天)
Hi, Im trying to remove the gaps between subplots and have read the following way to do it using repmat that works well.
A=[IM1 IM2 IM3;IM4 IM5 IM6];
A_new = repmat(A, [1 1]);
imshow(A,[low,high]);
1: Is it possible to highlight the separate images by adding say red lines on the composite image to be able to visually see the separation of the images i.e.
2: For each image IM1, IM2 etc. I have the x and y coordinates of points that I want to add to the graphic.
How do I add the x, y positions that correspond to IM1 to the correct location and so on?
thanks Jason
  2 个评论
Adam
Adam 2017-1-13
编辑:Adam 2017-1-13
I don't get the point of that repmat - it is basically a null statement. You could plot A and get just the same result as in fact you do anyway!

请先登录,再进行评论。

采纳的回答

Adam
Adam 2017-1-13
编辑:Adam 2017-1-13
If you know the size of your images then can't you just use a standard plot command
e.g.
A = [rand(100) rand(100) rand(100); rand(100) rand(100) rand(100)];
figure; imshow( A )
hold on
plot( [100 100], [1 200], 'r' )
etc

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by