필터 지우기
필터 지우기

I have a binary image , and a object like a half ball on that , I want to get the maximum(position) , means (x,y) and minimum position (x,y ) of that ang get the distance between these 2 points , how could I do this ? any suggestion and codes?

조회 수: 1 (최근 30일)
I have a binary image , and a object like a half ball on that , I want to get the maximum(position) , means (x,y) and minimum position (x,y ) of that object get the distance between these 2 points , how could I do this ? any suggestion and codes

답변 (1개)

Vivek
Vivek 2014년 5월 23일
use the find(X,k,'first') & find(X,k,'last') it returns the k first and k last non zero elements of the matrix/binary image

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by