extracting pixel values from image

조회 수: 6 (최근 30일)
Smruti Khobragade
Smruti Khobragade 2020년 1월 29일
댓글: Smruti Khobragade 2020년 1월 29일
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?

채택된 답변

Jose Jeremias Caballero
Jose Jeremias Caballero 2020년 1월 29일
편집: Jose Jeremias Caballero 2020년 1월 29일
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
Smruti Khobragade
Smruti Khobragade 2020년 1월 29일
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 2020년 1월 29일
it worked .
Thankyou

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by