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

3 vues (au cours des 30 derniers jours)
Anu G
Anu G le 26 Sep 2019
Commenté : Anu G le 26 Sep 2019
The reference image i have attached.
  3 commentaires
Anu G
Anu G le 26 Sep 2019
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 le 26 Sep 2019
You have to use plot function

Connectez-vous pour commenter.

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 26 Sep 2019
Modifié(e) : KALYAN ACHARJYA le 26 Sep 2019
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.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by