extracting pixel values from image

2 visualizaciones (últimos 30 días)
Smruti Khobragade
Smruti Khobragade el 29 de En. de 2020
Comentada: Smruti Khobragade el 29 de En. de 2020
Hello,
I have to get the value of pure black pixel in images which hva colorbar
i have converted the range of pixels using function of thresholding and divided the image accorging.
how can i get value of highest and min value(how pure the black color is?)
like waht is the highrst value of pixels ie highest value of black color in each image?

Respuesta aceptada

Jose Jeremias Caballero
Jose Jeremias Caballero el 29 de En. de 2020
Editada: Jose Jeremias Caballero el 29 de En. de 2020
a=imread('binary2.jpg');
imshow(a);
minimum=min(min(a)),
[row,column]=find(a==minimum);
hold on,
plot(column,row,'*'),
hold off,
minimum =
uint8
88
  2 comentarios
Smruti Khobragade
Smruti Khobragade el 29 de En. de 2020
sir i want mininum in the range 0-1 as shown in colorbar
like first pic will have pure black value as 0.8 secind image which vakue low black color will have output according to colorbar as 0.2 something
Smruti Khobragade
Smruti Khobragade el 29 de En. de 2020
it worked .
Thankyou

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Orange en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by