BoofCV icon indicating copy to clipboard operation
BoofCV copied to clipboard

logic operations for gray scale image type

Open thhart opened this issue 2 years ago • 2 comments

I can see there is a logicAnd and other in BinaryImageOps. Is there a specific reason why this is not available for gray scale image types? I have a little use case for this. So I am wondering if it would be of interest to have these functions in GrayImageOps as well?

thhart avatar Apr 28 '22 07:04 thhart

How would a logical operator be applied to a non binary value?

lessthanoptimal avatar Apr 28 '22 15:04 lessthanoptimal

Logic operations can happen on Integer base also and must not be restricted to binary space, this can be helpful to filter out a specific color in a image, or adding two images.

thhart avatar Apr 29 '22 08:04 thhart