please i need a help.. how to remove the darkest handwritten text (black and red) from this image? just the text?
1 view (last 30 days)
Walter Roberson on 24 Oct 2016
somethreshold = 11; %found by examining the image RGB values
mask = YourImage(:,:,3) > somethreshold;
NewImage = YourImage .* cast(mask(:,:,[1 1 1]), class(YourImage));
%And to view it,
image(NewImage, 'AlphaData', double(mask))
Only the darkest text is removed.