How to transfer region props coordinates (saved in .mat file format) from one image to a similar image

조회 수: 1 (최근 30일)
  댓글 수: 1
Eberechi ICHI
Eberechi ICHI 2021년 3월 11일
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'

댓글을 달려면 로그인하십시오.

채택된 답변

Mahesh Taparia
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개)

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by