# Threshold Input Image

The size of the threshold image must be the same as the size of the image being thresholded. You must also supply a 256-element look-up table (for CogImage8Grey input images) or a 65536-element look-up table (for CogImage16Grey input images) that specifies the pixel weight to assign for each difference in pixel value between the threshold image and the image being segmented, and a 256-element or 65536-element look-up table that is used to map the input image before thresholding. In addition to these look-up tables, you must supply a scale value that defines what value in the mapping table (0 to 255 or 0 to 65535) corresponds to a pixel weight of 1.