I work on MATLAB to characterise texture for a region of interest (ROI) in my images. I am masking the ROI from the image, and I want to apply my image analysis methods on the ROI only. The problem is that MATLAB is vectorising the ROI every time I do the following to calculate the fractional dimension (FD) for example:
frac_dim = FD(image(mask))
As a result, do you have any recommendations so that MATLAB can take into consideration the ROI while conserving the image aspect of it in order to preserve the spatial aspect?
Thank you for your help,
Vera