I am trying to extract the median value for every point of a line with a certain width. In my case, I select 10 pixel width and for each point of the line I would like to calculate the median value of these 10 pixels in order to plot it as a profile plot of the distance from the starting point of the line.
Manually, I can get from the profile plot the mean - I think, it is not clear to me where to find it - but I would like to get the raw data to calculate the median or other stuff. It is a segmented line because I am trying to get the intensity of a membrane-tethered protein fused to GFP.
I am new to Macros and this is my very start
waitForUser(“Image selection”,“Specify a segmented line. Press ok when ready.”);
How can I continue?