Putting horizontal lines on two images placed side by side after every 20 pixels heightwise.
1 次查看(过去 30 天)
显示 更早的评论
Hello, I have two images and I want to put those two images side by side and then want to draw horizontal lines on those images in a gap of every 20 pixels heightwise. For example if height is 480 pixels then number of lines will be 480/20 = 24. All 24 lines at equal distance of 20 pixels on both images. Following figure shows the demo what I want.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167137/image.jpeg)
I did this in Python but want to do same in Matlab. Also, I don't want to change images sizes. I know I can used
imshowpair(J1, J2, 'montage')
but I am not able to draw horizontal lines on this montage. My images are :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167138/image.jpeg)
<<
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167139/image.jpeg)
>>
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing and Computer Vision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!