| 222 | } |
| 223 | |
| 224 | void Lut3DOpData::Lut3DArray::setRGB(long i, long j, long k, float* RGB) |
| 225 | { |
| 226 | const long length = getLength(); |
| 227 | const long maxChannels = getMaxColorComponents(); |
| 228 | Array::Values& values = getValues(); |
| 229 | // Array order matches ctf order: channels vary most rapidly, then B, G, R. |
| 230 | long offset = (i*length*length + j*length + k) * maxChannels; |
| 231 | values[offset] = RGB[0]; |
| 232 | values[++offset] = RGB[1]; |
| 233 | values[++offset] = RGB[2]; |
| 234 | } |
| 235 | |
| 236 | void Lut3DOpData::Lut3DArray::scale(float scaleFactor) |
| 237 | { |
no outgoing calls