Returns a bit mask of which channels contribute to an edge between the two texels a, b.
| 169 | |
| 170 | /// Returns a bit mask of which channels contribute to an edge between the two texels a, b. |
| 171 | static int edgeBetweenTexels(const float *a, const float *b) { |
| 172 | return ( |
| 173 | RED*edgeBetweenTexelsChannel(a, b, 0)+ |
| 174 | GREEN*edgeBetweenTexelsChannel(a, b, 1)+ |
| 175 | BLUE*edgeBetweenTexelsChannel(a, b, 2) |
| 176 | ); |
| 177 | } |
| 178 | |
| 179 | /// Marks texel as protected if one of its non-median channels is present in the channel mask. |
| 180 | static void protectExtremeChannels(byte *stencil, const float *msd, float m, int mask) { |
no test coverage detected