Skip to content

Commit 7f994ad

Browse files
authored
Add files via upload
1 parent 3b8d027 commit 7f994ad

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

nQuantCpp/GilbertCurve.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/* Generalized Hilbert ("gilbert") space-filling curve for rectangular domains of arbitrary (non-power of two) sizes.
2-
Copyright (c) 2021 - 2025 Miller Cy Chan
2+
Copyright (c) 2021 - 2026 Miller Cy Chan
33
* A general rectangle with a known orientation is split into three regions ("up", "right", "down"), for which the function calls itself recursively, until a trivial path can be produced. */
44

55
#include "stdafx.h"
66
#include "GilbertCurve.h"
77
#include "BlueNoise.h"
88
#include "CIELABConvertor.h"
99

10-
#include <memory>
1110
#include <list>
1211

1312
namespace Peano
@@ -351,7 +350,7 @@ namespace Peano
351350
errorq.clear();
352351
weight = m_weight = abs(weight);
353352
margin = weight < .0025 ? 12 : weight < .004 ? 8 : 6;
354-
sortedByYDiff = m_saliencies && m_nMaxColor >= 128 && weight >= .02 && (!m_hasAlpha || weight < .18);
353+
sortedByYDiff = m_saliencies && m_nMaxColor >= 128 && weight < .08 && weight >= .02 && (!m_hasAlpha || weight < .18);
355354
beta = m_nMaxColor > 4 ? (float) (.6f - .00625f * m_nMaxColor) : 1;
356355
if (m_nMaxColor > 4) {
357356
auto boundary = .005 - .0000625 * m_nMaxColor;

0 commit comments

Comments
 (0)