This is a very basic threshold filter based on the intensity8 method of KoColorSpace.
Diff Detail
Diff Detail
- Repository
- R37 Krita
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
The patch works fine. There are two small issues, that can be fixed right before the commit.
plugins/filters/threshold/threshold.cpp | ||
---|---|---|
95 | It is much faster to cache the pixelSize value in a 'const int' variable that is defined outside the loop. The main purpose of KisSequentialIterator is to avoid virtual calls that make iteration up to 2-5 times faster and here we have at least two virtual calls :) | |
plugins/filters/threshold/threshold.h | ||
53 | As far as I can tell, this value is used in the GUI menu, so it should actually be "Threshold...", because it creates a new dialog |