annotate OrthancStone/Sources/Toolbox/PixelTestPatterns.h @ 1631:960bb5fcc440

SortedFrames::GetFrameGeometry()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Nov 2020 18:49:08 +0100
parents 8563ea5d8ae4
children 9ac2a65d4172
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1275
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
1 /**
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
2 * Stone of Orthanc
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
4 * Department, University Hospital of Liege, Belgium
1283
6489610c8ee1 2019 to 2020
Benjamin Golinvaux <bgo@osimis.io>
parents: 1275
diff changeset
5 * Copyright (C) 2017-2020 Osimis S.A., Belgium
1275
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
6 *
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
7 * This program is free software: you can redistribute it and/or
1598
8563ea5d8ae4 relicensing some files, cf. osimis bm26 and chu agreement on 2020-05-20
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1512
diff changeset
8 * modify it under the terms of the GNU Lesser General Public License
1275
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
9 * as published by the Free Software Foundation, either version 3 of
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
10 * the License, or (at your option) any later version.
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
11 *
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful, but
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
1598
8563ea5d8ae4 relicensing some files, cf. osimis bm26 and chu agreement on 2020-05-20
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1512
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8563ea5d8ae4 relicensing some files, cf. osimis bm26 and chu agreement on 2020-05-20
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1512
diff changeset
15 * Lesser General Public License for more details.
1275
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
16 *
1598
8563ea5d8ae4 relicensing some files, cf. osimis bm26 and chu agreement on 2020-05-20
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1512
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
8563ea5d8ae4 relicensing some files, cf. osimis bm26 and chu agreement on 2020-05-20
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1512
diff changeset
18 * License along with this program. If not, see
8563ea5d8ae4 relicensing some files, cf. osimis bm26 and chu agreement on 2020-05-20
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1512
diff changeset
19 * <http://www.gnu.org/licenses/>.
1275
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
20 **/
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
21
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
22 // PixelTestPatterns.h
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
23
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
24 #pragma once
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
25
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
26 #include "../StoneException.h"
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
27
1455
30deba7bc8e2 simplifying include_directories
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1283
diff changeset
28 #include <Images/ImageAccessor.h>
1275
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
29
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
30 #include <string>
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
31 #include <stdint.h>
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
32 #include <math.h>
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
33
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
34 namespace OrthancStone
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
35 {
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
36 namespace PixelTestPatterns
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
37 {
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
38 template<typename T, typename U>
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
39 inline uint8_t byteAddClip(T v1, U v2)
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
40 {
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
41 double tmp = static_cast<double>(v1) + static_cast<double>(v2);
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
42 if (tmp > 255.0)
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
43 tmp = 255;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
44 if (tmp < 0.0)
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
45 tmp = 0;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
46 return static_cast<uint8_t>(tmp+0.5);
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
47 }
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
48
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
49 // fills the area with a horizontal gradient.
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
50 // leftmost pixels are filled with r0 g0 b0
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
51 // rightmost pixels are filled with r1 g1 b1
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
52 // linear interpolation in-between
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
53 inline void fillWithHGradient(Orthanc::ImageAccessor& target,
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
54 uint8_t r0, uint8_t g0, uint8_t b0,
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
55 uint8_t r1, uint8_t g1, uint8_t b1)
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
56 {
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
57 if (target.GetFormat() != Orthanc::PixelFormat_RGBA32) {
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
58 ORTHANC_ASSERT(false, "Wrong pixel format");
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
59 }
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
60 const unsigned int width = target.GetWidth();
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
61 const unsigned int height = target.GetHeight();
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
62
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
63 ORTHANC_ASSERT(width > 0);
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
64 ORTHANC_ASSERT(height > 0);
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
65
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
66 double invWidth = 1.0 / static_cast<double>(target.GetWidth());
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
67 double rIncr = (static_cast<double>(r1) - static_cast<double>(r0))* invWidth;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
68 double gIncr = (static_cast<double>(g1) - static_cast<double>(g0))* invWidth;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
69 double bIncr = (static_cast<double>(b1) - static_cast<double>(b0))* invWidth;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
70
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
71 for (unsigned int y = 0; y < height; y++)
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
72 {
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
73 uint8_t r = r0;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
74 uint8_t g = g0;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
75 uint8_t b = b0;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
76 uint8_t* q = reinterpret_cast<uint8_t*>(target.GetRow(y));
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
77 for (unsigned int x = 0; x < width; x++)
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
78 {
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
79 q[0] = r;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
80 q[1] = g;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
81 q[2] = b;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
82 q[3] = 255;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
83 r = byteAddClip(r, rIncr);
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
84 g = byteAddClip(g, gIncr);
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
85 b = byteAddClip(b, bIncr);
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
86 q += 4;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
87 }
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
88 }
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
89 }
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
90
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
91 inline void fillWithVGradient(Orthanc::ImageAccessor& target,
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
92 uint8_t r0, uint8_t g0, uint8_t b0,
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
93 uint8_t r1, uint8_t g1, uint8_t b1)
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
94 {
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
95 if (target.GetFormat() != Orthanc::PixelFormat_RGBA32) {
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
96 ORTHANC_ASSERT(false, "Wrong pixel format");
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
97 }
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
98 const unsigned int width = target.GetWidth();
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
99 const unsigned int height = target.GetHeight();
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
100
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
101 ORTHANC_ASSERT(width > 0);
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
102 ORTHANC_ASSERT(height > 0);
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
103
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
104 double invHeight = 1.0 / static_cast<double>(target.GetHeight());
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
105 double rIncr = (static_cast<double>(r1) - static_cast<double>(r0))* invHeight;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
106 double gIncr = (static_cast<double>(g1) - static_cast<double>(g0))* invHeight;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
107 double bIncr = (static_cast<double>(b1) - static_cast<double>(b0))* invHeight;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
108
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
109 uint8_t r = r0;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
110 uint8_t g = g0;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
111 uint8_t b = b0;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
112 for (unsigned int y = 0; y < height; y++)
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
113 {
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
114 uint8_t* q = reinterpret_cast<uint8_t*>(target.GetRow(y));
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
115 for (unsigned int x = 0; x < width; x++)
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
116 {
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
117 q[0] = r;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
118 q[1] = g;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
119 q[2] = b;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
120 q[3] = 255;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
121 q += 4;
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
122 }
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
123 r = byteAddClip(r, rIncr);
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
124 g = byteAddClip(g, gIncr);
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
125 b = byteAddClip(b, bIncr);
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
126 }
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
127 }
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
128
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
129 }
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
130 }
41d19fa749b7 Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
131