From d076223293e0cb53dfad5496c3610c318960676e Mon Sep 17 00:00:00 2001 From: heckflosse Date: Tue, 27 Sep 2016 14:47:37 +0200 Subject: [PATCH] Added attributions in median.h --- rtengine/median.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rtengine/median.h b/rtengine/median.h index c2ef5fd27..6226d2520 100644 --- a/rtengine/median.h +++ b/rtengine/median.h @@ -15,6 +15,16 @@ * * You should have received a copy of the GNU General Public License * along with RawTherapee. If not, see . + * + * This median implementations from Floessie and Ingo Weyrich are inspired by this work: + * + * http://ndevilla.free.fr/median/median.pdf + * http://pages.ripco.net/~jgamble/nw.html + * https://github.com/hoytech/Algorithm-Networksort-Chooser + * + * Instead of using the PIX_SORT and PIX_SWAP macros we use std::min() and std::max() + * because it turned out that it generates much faster (branch free) code on machines which support SSE + * */ #pragma once