Consider an image displayed using Matlab imagesc() axes of some generic description, say 10x10 pixels, where each pixel has an intensity value in [0 255].
Using the imline() method in the image analysis toolkit I would like to retrieve the pixel intensity values along a line defined interactively by the user. Commonly known as a "line profile". The important difference here is that a line parallel to either X or Y axis is insufficient. The line has to be interactively drawn by the user.
So far I have looked into Matlab methods improfile() and impixel() but so far I have not managed to get the desired result.
improfile
does exactly this. Where are you running into difficulty? – Petercallback
actions foraxes
. – Crowley