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

3 ビュー (過去 30 日間)
Anu G
Anu G 2019 年 9 月 26 日
コメント済み: Anu G 2019 年 9 月 26 日
The reference image i have attached.
  3 件のコメント
Anu G
Anu G 2019 年 9 月 26 日
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.
darova
darova 2019 年 9 月 26 日
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 件)

Community Treasure Hunt

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

Start Hunting!

Translated by