Pixel value difference graph for two images

조회 수: 6 (최근 30일)
PRATAP MANDAL
PRATAP MANDAL 2021년 1월 17일
댓글: Laraib Naz 2021년 1월 25일
I want to show the pixel value difference histogram of two images as shown in the above attached file and want to show the outline of the histograms only. I am using histogram(cover,'DisplayStyle','stairs'),
but its showing only solid histogram. Another question, how to use the legent ?
Please help me.

답변 (1개)

Matt Gaidica
Matt Gaidica 2021년 1월 17일
First of all, are you asking for an algorithm to get the pixel value difference or do you just want code for the histogram? To get you started, the code below results in the following plot.
a = rand(1,1000);
histogram(a,'DisplayStyle','stairs')
legend('Random Numbers')
  댓글 수: 3
Matt Gaidica
Matt Gaidica 2021년 1월 17일
... and use
hold on
to plot another histogram in the same figure;
Laraib Naz
Laraib Naz 2021년 1월 25일
pixel vale difference code

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

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by