[krita] [Bug 401788] "Scale Image to New Size" - Nearest Neighbor filter generates wrong results while downsampling image

2019-04-05 Thread Tymond
https://bugs.kde.org/show_bug.cgi?id=401788

Tymond  changed:

   What|Removed |Added

 Resolution|--- |FIXED
  Latest Commit||https://commits.kde.org/kri
   ||ta/57c3194c1c8aaf9b17fd8f08
   ||0533610c38a626a7
 Status|CONFIRMED   |RESOLVED

--- Comment #1 from Tymond  ---
Git commit 57c3194c1c8aaf9b17fd8f080533610c38a626a7 by Agata Cacko.
Committed on 05/04/2019 at 08:33.
Pushed by tymond into branch 'master'.

Fix results of Nearest Neighbour filter

Summary:
Before this patch the NN filter would create intermediate colors
in some circumstances, especially when scaling with the scale <50%.
Now the filter will choose one of the colors around instead of
blending colors around to get the result color.

Test Plan:
- added tests to test the behaviour of NN filter
- testing on the image:
http://www.bealecorner.org/red/test-patterns/star-chart-bars144-600dpi.png
- testing on the image from bug report

Reviewers: dkazakov, #krita

Reviewed By: dkazakov, #krita

Tags: #krita

Differential Revision: https://phabricator.kde.org/D20246

M  +34   -13   libs/image/kis_filter_strategy.cc
M  +24   -16   libs/image/kis_filter_strategy.h
M  +7-2libs/image/kis_filter_weights_applicator.h
M  +6-5libs/image/kis_filter_weights_buffer.h
M  +1-1libs/image/kis_transform_worker.cc
M  +208  -21   libs/image/tests/kis_filter_weights_applicator_test.cpp
M  +10   -0libs/image/tests/kis_filter_weights_applicator_test.h

https://commits.kde.org/krita/57c3194c1c8aaf9b17fd8f080533610c38a626a7

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 401788] "Scale Image to New Size" - Nearest Neighbor filter generates wrong results while downsampling image

2019-03-25 Thread Tymond
https://bugs.kde.org/show_bug.cgi?id=401788

Tymond  changed:

   What|Removed |Added

   Assignee|krita-bugs-n...@kde.org |tamtamy.tym...@gmail.com
 CC||tamtamy.tym...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 401788] "Scale Image to New Size" - Nearest Neighbor filter generates wrong results while downsampling image

2019-03-15 Thread Curtis Wiseman
https://bugs.kde.org/show_bug.cgi?id=401788

Curtis Wiseman  changed:

   What|Removed |Added

 CC||can0bicc...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 401788] "Scale Image to New Size" - Nearest Neighbor filter generates wrong results while downsampling image

2019-01-15 Thread Boudewijn Rempt
https://bugs.kde.org/show_bug.cgi?id=401788

Boudewijn Rempt  changed:

   What|Removed |Added

 Status|REPORTED|CONFIRMED
 Ever confirmed|0   |1
 CC||b...@valdyas.org

-- 
You are receiving this mail because:
You are watching all bug changes.