How can I compute the beam diameter of an image?
8 次查看(过去 30 天)
显示 更早的评论
I have a set of ccd images of a laser beam and I want to be able to compute the beam diameter (in mm) from each image. Currently, I'm thinking of something along these lines:
pixelsizemm = 4.65*10^(-3);
image = imread(FileName,'bmp');
imsizepix = size(image);
imsizemm = pixelsizemm*[size(image,1),size(image,2)];
BI = image>75;
newBI = bwconvhull(BI);
imshow(newBI)
to take the image and transform it into something close to a circle, but I'm still unsure how I can go from this to calculating the diameter of the beam, or whether this is the best way of doing it. The beam profile is also doughnut shaped, meaning that the binary image is sometimes picking up that there is a black hole in the middle, which I wan to ignore. I've included an example of one of the images I need to analyse.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!