필터 지우기
필터 지우기

Return index output of bwdistgeodesic?

조회 수: 3 (최근 30일)
Eric Chadwick
Eric Chadwick 2019년 5월 14일
댓글: Wolfgang Schwanghart 2022년 2월 22일
As the title reads, I would like to use bwdistgeodesic by providing a volume and seed locations. Currently, this function returns the distance to the nearest seed location, but no the index. Does anyone know a way to return the nearest seed index?
  댓글 수: 1
Wolfgang Schwanghart
Wolfgang Schwanghart 2022년 2월 22일
This could be a good enhancement request. The same is true for graydist.

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

답변 (1개)

Shivam Sardana
Shivam Sardana 2019년 5월 22일
bwdistgeodesic function does not return nearest index to point. If you want to get index, use bwdist. You can refer to this documentation link for bwdist: https://www.mathworks.com/help/images/ref/bwdist.html
  댓글 수: 2
Eric Chadwick
Eric Chadwick 2019년 5월 26일
Hello,
Thank you for your answer, but the point of my question is that I would like to know if there is a way to retrieve the index from bwdistgeodesic as I want the geodesic closest point to my source points but still be bounded by the boundaries of my voxels.
Shivam Sardana
Shivam Sardana 2019년 6월 4일
According to bwdistgeodesic documentation, there is no way you can retrieve the index.

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

카테고리

Help CenterFile Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by