* @brief Set output pixel range in Buffer * * This method allows the programmer to specify the acceptable range of values * contained in the Buffer. If this method is never invoked, all pixel values * received in the Buffer of the export function will be in the range of 0.0 * to 1.0. However, this can be overridden, for example, to 0.0 and 255.0, by * invoking this method. *
| 452 | * @throws Isis::iException::Message |
| 453 | */ |
| 454 | void ProcessExport::SetOutputRange(const double minimum, const double maximum) { |
| 455 | if (minimum >= maximum) { |
| 456 | string message = |
| 457 | "minimum must be less than the maximum [ProcessExport::SetOutputRange]"; |
| 458 | throw IException(IException::Programmer, message, _FILEINFO_); |
| 459 | } |
| 460 | |
| 461 | p_outputMinimum = minimum; |
| 462 | p_outputMaximum = maximum; |
| 463 | p_outputMiddle = (p_outputMinimum + p_outputMaximum) / 2.0; |
| 464 | } |
| 465 | |
| 466 | |
| 467 | /** |
no test coverage detected