Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to use Matlab function which supportsUint8 for image in double

2 visualizaciones (últimos 30 días)
Dnyanesh Kanade
Dnyanesh Kanade el 3 de Mayo de 2015
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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.

Respuestas (1)

Image Analyst
Image Analyst el 3 de Mayo de 2015
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 comentario
Dnyanesh Kanade
Dnyanesh Kanade el 4 de Mayo de 2015
Thank You sir, but it gives same error. My image is Uint16(12 bit). i.e. JSRT X-Ray Image Database.

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by