Download Sapera++ Programmer`s Manual
Transcript
Remarks Modifies all LUT entries using a logical shift. If numBits is positive, a left shift occurs, and the least significant bits are filled with 0’s. If numBits is negative, a right shift occurs, and the most significant bits are filled with 0’s. This behavior is expressed as follows: If numBits > 0: data[i] <<= numBits If numBits < 0: data[i] >>= (-numBits) SapLut | SapLut Class Members | Basic Class Hierarchy Chart SapLut::Slope virtual BOOL Slope(int startIndex, int endIndex, SapData minValue, SapData maxValue, BOOL clipOutside = FALSE); Parameters startIndex Starting LUT index for linear mapping endIndex Ending LUT index for linear mapping minValue LUT element value at starting index maxValue LUT element value at ending index clipOutside Specifies whether LUT elements outside the mapping range should also be modified Return Value Returns TRUE if successful, FALSE otherwise Remarks Modifies part of a LUT with a linear mapping. LUT elements from startIndex to endIndex are remapped from minValue to maxValue. If clipOutside is TRUE, then elements outside the range are unaffected. If FALSE, then elements below startIndex are set to minValue and elements above endIndex are set to maxValue. This behavior is expressed as follows: If clipOutside is TRUE: data[0] ... data[startIndex - 1] = minValue data[startIndex] = minValue (Linear mapping from data[startIndex] to data[endIndex]) data[endIndex] = maxValue If clipOutside is TRUE: data[endIndex + 1] ... data[maxIndex- 1] = maxValue The value arguments must be either SapDataMono or SapDataRGB objects, depending on the LUT format. SapLut | SapLut Class Members | Basic Class Hierarchy Chart Sapera++ Programmer's Manual Basic Class Reference • 235
Related documents
Sapera LT User`s Manual
Sapera LT ActiveX Manual
X64-LVDS User`s Manual
X64 Xcelera
X64 Xcelera-CL PX4 User`s Manual
X64 Xcelera-CL PX4 User`s Manual
Xtium-CL PX4 User`s Manual
Dalsa C1280 User`s manual
Dalsa HC1024 User`s manual
Dalsa M1410 User`s manual
Dalsa M1400 User`s manual
Dalsa M1024 User`s manual