Skip to content
Snippets Groups Projects
Commit 26efe0a4 authored by Andrew Cohen's avatar Andrew Cohen
Browse files

3d pdf

parent 66e1166f
Branches
No related tags found
No related merge requests found
im = imread('Ellipse2.tif');
imagesc(im)
[r c]=find(im);
obj=gmdistribution.fit([c,r],2);
idx = [1:prod(size(im))];
[r c]=ind2sub(size(im),idx);
probXY=obj.pdf([c',r']);
imP = reshape(probXY,size(im));
figure;surf(imP);hold on
% imrgb = ind2rgb(im,[0 0 0;1 1 1]);
% imagesc(imrgb)
[r c]=find(im);
plot(c,r,'.r')
\ No newline at end of file
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment