Hello, Please i want to transfer the region props from the image on my left which i already have in a .mat file (101 components) to the image on my right. At the end i want to label the pixels of these connected componests as '2'
How to transfer region props coordinates (saved in .mat file format) from one image to a similar image
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Mahesh Taparia
2021-3-30
Hi
You can use regionprops function on the 1st image to find the pixel location of the components using 'PixelList' property of the function. Use those pixel location in the 2nd image or create a matrix of zeros and assign the label value (as you have mentioned 2) at those location in the 2nd image/ in zeros matrix.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!