how to extract pixel value?

Hi Every one..anyone can help me?
How to extract the pixel value?
i have try this code, but the result not show the pixel value
X = dicomread('128X128','frames',16);
Y=findND(X(58:70,70:84));

2 comentarios

Star Strider
Star Strider el 13 de Dic. de 2019
For best results, include the slice of the DICOM image you want to work with, as an attachment or as an uploaded image.
mohd akmal masud
mohd akmal masud el 13 de Dic. de 2019
ok, this is my image
i want pixel value for frame no. 16, the location is (X(58:70,70:84));

Iniciar sesión para comentar.

Respuestas (1)

Anudeep Kumar
Anudeep Kumar el 30 de Jun. de 2025
Movida: Image Analyst el 30 de Jun. de 2025

0 votos

If we want to extract pixel value, 'findND' is not required.
We can use :
X = dicomread('128X128', 'frames', 16);
region = X(58:70, 70:84);
disp(region);
This will print the pixel values in the specified region (rows 58 to 70 and columns 70 to 84) of frame 16.

Preguntada:

el 13 de Dic. de 2019

Movida:

el 30 de Jun. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by