필터 지우기
필터 지우기

Info

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

How to use Matlab function which supportsUint8 for image in double

조회 수: 2 (최근 30일)
Dnyanesh Kanade
Dnyanesh Kanade 2015년 5월 3일
마감: MATLAB Answer Bot 2021년 8월 20일
I have X-Ray image database whose images are 16bit format(double). If I want to use Matlab function
[centers, radii] = imfindcircles(img5,[20 25],'ObjectPolarity','dark'); it gives me error Undefined function or method 'imfindcircles' for input arguments of type 'double'.
Please help me in this regard.

답변 (1개)

Image Analyst
Image Analyst 2015년 5월 3일
Before you call it, cast img5 to an integer, either uint8 or uint16
img8bit = uint8(255 * mat2gray(img5)); % Make 8 bit copy.
[centers, radii] = imfindcircles(img8bit , [20, 25], 'ObjectPolarity', 'dark');
delete(img8bit ); % clear temporary variable.
  댓글 수: 1
Dnyanesh Kanade
Dnyanesh Kanade 2015년 5월 4일
Thank You sir, but it gives same error. My image is Uint16(12 bit). i.e. JSRT X-Ray Image Database.

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

Community Treasure Hunt

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

Start Hunting!

Translated by