How to use the output variable imshow(imIDX,[]) as input for another Process?
1 次查看(过去 30 天)
显示 更早的评论
am trying to combine clustering segmentation with other image segmentation algorithm, but i stack at accessing the clustered image, when i try to use imIDX as a variable, figure will displayed without any image(PFA).
<<
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/169101/image.jpeg)
>>
0 个评论
采纳的回答
Walter Roberson
2018-1-18
Use
scaled_imIDX = mat2gray(imIDX);
This will give you an array that corresponds to the array imshow() with the [] option would use to display the data.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Read, Write, and Modify Image 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!