ImageGearJava Project > com.accusoft.imagegear.core Package > ImGearFullLUT Class > getTableIndex Method : getTableIndex(int) Method |
public long getTableIndex( int inputValue ) |
This method returns table index corresponding to input value. If LUT input is signed, and input value is negative, table index is calculated as 2's complement to number of table entries. Otherwise, table index is equal to input value.
For example, if input depth is 12, and input value is -1, table index is 4096 - 1 = 4095.