specific image stretching to chosen size
1 次查看(过去 30 天)
显示 更早的评论
How do i strech the 4th image so that only the RGB part is 300 x 300. i want the black bit deleted.
回答(1 个)
Pranjal Kaura
2021-7-30
Hey Neil,
It is my understanding that you want to rescale(stretch) the 4th image such that only a selected portion (RGB part of the image) is displayed on the predefined axis.
A possible workaround could be:
- Accessing the 4th location in the plot by using the subplot function. For your example you can use "subplot(1, 4, 4)" to access the 4th location.
- Rescaling the image by changing the 'Xdata' and 'Ydata' property of the 'imshow' function.
- Use the 'imcrop' function to crop out the required part of the image.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!