Obtain FWHM from improfile of image

1 view (last 30 days)
Ramses Herrera
Ramses Herrera on 1 Jul 2015
Edited: Walter Roberson on 2 Jul 2015
Is there a way to obtain the FWHM from the improfile function? Where is the data used to generate the improfile plot stored? Can I fit this data with a Gaussian function to get the FWHM this way?
%/Calculate Collimation from dose profile on GafChromic film.
%/Get your scanned image.
[FileName,PathName] = uigetfile('*.jpg','Select your Image in .jpeg format');
A = imread(strcat(PathName,FileName));
%/Convert your image to a gray scale. Otherwise you get intensity profile
%/for each of the three basic colors: Red, Green & Blue.
I = rgb2gray(A);
imshow(I);
%/Get the intensity profile from selected section. Press "ENTER" after
%/Selecting the section.
improfile
Thanks,

Answers (0)

Community Treasure Hunt

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

Start Hunting!