필터 지우기
필터 지우기

How to display pixel values on the image and label on the region I want?

조회 수: 1 (최근 30일)
My project is want to enhance the hand vein image. The problem is I need to display some values on the vein. For example, pixel values, SNR and MSE. Below I attached the code to get the pixel values but I don't understand why the value have 3.
imshow 'hazirah.jpg';
pixel_values = impixel;

채택된 답변

Image Analyst
Image Analyst 2021년 12월 18일
You have 3 values because it's a color image. Those are the red, green, and blue intensity values.
rgbImage = imread('hazirah.jpg');
imshow(rgbImage);
impixelinfo; % Mouse around and see values.
row = 1; % whatever you want.
collumn = 4; % whatever you want.
pixel_values = impixel(rgbImage, row, column);
  댓글 수: 2
Atifah Samuri
Atifah Samuri 2021년 12월 20일
how about the MSE and SNR values sir? Can i get the value to do the comparison between the original image with CLAHE image?
Image Analyst
Image Analyst 2021년 12월 20일
There are built in functions psnr() and immse(). Try those.

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

추가 답변 (0개)

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by