pixel value to mm for plotting intensity distribution as a function of position

I have an image from CCD camera and I saved it in jpeg format. I export it into matlab and convert it into grayscale. i want to convert the pixels value into mm (real size of object), for which I used the spatial calibration (mm/pixels =0.019) factor from known value.
After this conversion, I want to plot the intensity distribution as function of position (mm) (converted from pixel value). The graph should look like Intensity along y axis and position along x axis.

I could not get the position value correctly equivalent to real dimension of the object.

Answers

Sign In or Register to comment.