Add a basic threshold filter
ClosedPublic

Authored by rempt on Jul 28 2016, 12:21 PM.

Details

Reviewers
dkazakov
Group Reviewers
Krita
Summary

This is a very basic threshold filter based on the intensity8 method of KoColorSpace.

Diff Detail

Repository
R37 Krita
Lint
Lint Skipped
Unit
Unit Tests Skipped
rempt updated this revision to Diff 5537.Jul 28 2016, 12:21 PM
rempt retitled this revision from to Add a basic threshold filter.
rempt updated this object.
rempt edited the test plan for this revision. (Show Details)
rempt added a reviewer: Krita.
rempt set the repository for this revision to R37 Krita.
rempt added a subscriber: Krita.
dkazakov accepted this revision.Aug 1 2016, 9:41 AM
dkazakov added a reviewer: dkazakov.
dkazakov added a subscriber: dkazakov.

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

This revision is now accepted and ready to land.Aug 1 2016, 9:41 AM
rempt closed this revision.Aug 1 2016, 9:49 AM
Restricted Application added a project: Krita. ยท View Herald TranscriptDec 29 2021, 12:53 AM