필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to change the order of objects shown in a table using regioncrops

조회 수: 1 (최근 30일)
Tian Tian
Tian Tian 2018년 1월 16일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi everyone,I am having a hard time to compare my images using Matlab. I am trying to compare object characteristics in the table after running regioncrops, but the order of objects from two images are not the same (objects changed the location). Are there any ways to change the order of objects shown in the table after running regioncrops? Thank you.

답변 (1개)

Darshan Ramakant Bhat
Darshan Ramakant Bhat 2018년 1월 18일
When the position of the object is changed, the output 'stats' table will also change. You have to do row wise comparison of two tables in order to match them. That is, compare the first row of first table with the all the rows of the other table (with tolerance may be) and find the matched one. Below answer discusses on how to go about it:
I hope this will help you.
  댓글 수: 1
Tian Tian
Tian Tian 2018년 1월 19일
Thank you so much for your help. What I am thinking is, if the information in 1st column, i.e. 2nd row, in Excel 1 can match 1st column in xth row in Excel 2, then I would like to rejoin it and save in another excel. My challenge is I don't know which row in Excel 2 can match it in Excel 1 (since the data is not exactly the same). The tables here are outputs from regioncrops. Do you have any ideas for my goal? Thanks a lot.

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by