View Single Post
Old 14th November 2015, 18:04   #11  |  Link
martin53
Registered User
 
Join Date: Mar 2007
Posts: 407
Mask With Merge or Hard Switching?

I added a mask option to the filter, so the pixels to be processed can be restricted for speed improvement.
Please comment if the filter mask should just output the filtered pixel if the mask pixel value is > 0, or if the output should be a merge between the input and filtered value for mask values 1...254?

The merge option needs one more check even if the mask is binary. An additional mt_binarize() or Levels() filter is needed for hard switching behaviour.

Without the internal blend option, an additional merge() is needed if soft borders between filtered and unfiltered pixels are desired.

In my personal opinion soft blending (need for binarized mask if desired) is better.
martin53 is offline   Reply With Quote