简体   繁体   English

Matlab cpselect与RGB固定图像

[英]Matlab cpselect with RGB fixed image

I would like to be able to use the cpselect matlab tool (or a similar one) with the capability of showing both images (moving image and reference image) in RGB (I only managed to see moving image in RGB and reference image in grayscale). 我希望能够使用cpselect matlab工具(或类似工具)来显示RGB中的图像(运动图像和参考图像)(我只设法看到RGB中的运动图像和灰度中的参考图像) 。

Could someone point me to an alternative for this tool that would support this or anyway to be able to display both image in rgb in cpselect? 有人可以指出我该工具的替代方案,该替代方案将支持该方法,或者无论如何能够在cpselect中的rgb中显示两个图像?

Thanks in advance. 提前致谢。

Not sure what you're talking about, and I'm quite confused about your statement. 不知道您在说什么,我对您的发言感到很困惑。 cpselect is image independent. cpselect与映像无关。 You can show both of them as colour or grayscale or one or the other. 您可以将它们都显示为彩色或灰度或两者之一。 The example you're probably looking at is the one that comes with MATLAB: http://www.mathworks.com/help/images/ref/cpselect.html . 您可能正在查看的示例是MATLAB随附的示例: http : //www.mathworks.com/help/images/ref/cpselect.html One image is grayscale, while the other has a pinkish hue. 一幅图像是灰度的,而另一幅则是粉红色的。

Here's an example showing both the source and target image as being in colour. 这是一个示例,显示源图像和目标图像都是彩色的。 I used onion.png that is a colour image that is part of the MATLAB system path: 我使用了onion.png ,它是MATLAB系统路径中一部分的彩色图像:

im = imread('onion.png');
im_rotate = imrotate(im, 35);
cpselect(im, im_rotate);

We get: 我们得到:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM