[Solved] Applying an algorithm to a specific region of an image [closed]
Using a mask defined by any of the “imroi” functions – imfreehand and imellipse included, you can use roifilt2 to filter just the roi using a given filter or function. First, define the area: imshow(I); %display your image h = imfreehand; % now pick the region BW = createmask(h); %makes BW mask Then, use roifilt2 … Read more