How to plot different probability distribution for an image . Kindly help me.

The reference image i have attached.

댓글 수: 3

What have you tried? Do you have any attempts?
I tried with hist plot it didnt workout. I need to plot different type of PDF(weibull, log normal, Rayleigh etc.) for an sonar texture image.
You have to use plot function

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

 채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 9월 26일
편집: KALYAN ACHARJYA 2019년 9월 26일
gray_image=rgb2gray(imread('image_test.jpg'));
[r c]=size(gray_image);
pix_prob_normal=imhist(gray_image)./(r*c);
plot(0:255,pix_prob_normal);
xlabel('Gray Levels');
ylabel('Pixels Probability');
I need to plot different type of PDF(weibull, log normal, Rayleigh etc.) for an sonar texture image
pix_prob_weibull=
plot(.....)
hold on;
so on...
At last use Legends
Hope you can do the other plots.

추가 답변 (0개)

질문:

2019년 9월 26일

댓글:

2019년 9월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by