Mercurial > hg > orthanc-stone
annotate Framework/Toolbox/PixelTestPatterns.h @ 1324:4d8d642f7036 broker
Added a NullLayer scene layer type that allows
"booking" a scene depth entry.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 24 Mar 2020 16:24:26 +0100 |
parents | 6489610c8ee1 |
children | 30deba7bc8e2 |
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 | 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 |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
8 * modify it under the terms of the GNU Affero General Public License |
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 |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
15 * Affero General Public License for more details. |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
16 * |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
17 * You should have received a copy of the GNU Affero General Public License |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
19 **/ |
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 // PixelTestPatterns.h |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
22 |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
23 #pragma once |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
24 |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
25 #include "../StoneException.h" |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
26 |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
27 #include <Core/Images/ImageAccessor.h> |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
28 |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
29 #include <string> |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
30 #include <stdint.h> |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
31 #include <math.h> |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
32 |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
33 namespace OrthancStone |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
34 { |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
35 namespace PixelTestPatterns |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
36 { |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
37 template<typename T, typename U> |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
38 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
|
39 { |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
40 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
|
41 if (tmp > 255.0) |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
42 tmp = 255; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
43 if (tmp < 0.0) |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
44 tmp = 0; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
45 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
|
46 } |
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 // fills the area with a horizontal gradient. |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
49 // 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
|
50 // 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
|
51 // linear interpolation in-between |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
52 inline void fillWithHGradient(Orthanc::ImageAccessor& target, |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
53 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
|
54 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
|
55 { |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
56 if (target.GetFormat() != Orthanc::PixelFormat_RGBA32) { |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
57 ORTHANC_ASSERT(false, "Wrong pixel format"); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
58 } |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
59 const unsigned int width = target.GetWidth(); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
60 const unsigned int height = target.GetHeight(); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
61 |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
62 ORTHANC_ASSERT(width > 0); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
63 ORTHANC_ASSERT(height > 0); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
64 |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
65 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
|
66 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
|
67 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
|
68 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
|
69 |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
70 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
|
71 { |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
72 uint8_t r = r0; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
73 uint8_t g = g0; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
74 uint8_t b = b0; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
75 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
|
76 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
|
77 { |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
78 q[0] = r; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
79 q[1] = g; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
80 q[2] = b; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
81 q[3] = 255; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
82 r = byteAddClip(r, rIncr); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
83 g = byteAddClip(g, gIncr); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
84 b = byteAddClip(b, bIncr); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
85 q += 4; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
86 } |
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 inline void fillWithVGradient(Orthanc::ImageAccessor& target, |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
91 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
|
92 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
|
93 { |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
94 if (target.GetFormat() != Orthanc::PixelFormat_RGBA32) { |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
95 ORTHANC_ASSERT(false, "Wrong pixel format"); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
96 } |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
97 const unsigned int width = target.GetWidth(); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
98 const unsigned int height = target.GetHeight(); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
99 |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
100 ORTHANC_ASSERT(width > 0); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
101 ORTHANC_ASSERT(height > 0); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
102 |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
103 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
|
104 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
|
105 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
|
106 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
|
107 |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
108 uint8_t r = r0; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
109 uint8_t g = g0; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
110 uint8_t b = b0; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
111 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
|
112 { |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
113 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
|
114 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
|
115 { |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
116 q[0] = r; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
117 q[1] = g; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
118 q[2] = b; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
119 q[3] = 255; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
120 q += 4; |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
121 } |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
122 r = byteAddClip(r, rIncr); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
123 g = byteAddClip(g, gIncr); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
124 b = byteAddClip(b, bIncr); |
41d19fa749b7
Added PixelTestPattern class to debug invisible slice issues
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
125 } |
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 |