extracting pixel values from image

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

Jose Jeremias Caballero
Jose Jeremias Caballero il 29 Gen 2020
Modificato: Jose Jeremias Caballero il 29 Gen 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 Commenti
Smruti Khobragade
Smruti Khobragade il 29 Gen 2020
it worked .
Thankyou

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by