stretchContrastCV(ImageJCV i, Number oldMin, Number oldMax, Number newMin, Number newMax)
Converts an 16-bit 1-channel image (f.ex. a temperature map) to an 24-bit RGB grayscale image. The contrast of the new image is calculated with this formula for each pixel:
ReinterpretCV(ImageJCV i, Number newWidth, Number newhHeight, Number newDepth, Number newNumChannels, Number newPixelFormat)
Reinterprets the content of an image (argument 0) as another image with different width, height, depth, number of channels or pixel format. Any parameter which is set to 1 will be replaced by the corresponding value of the original image. Buffer sizes of original and reinterpreted image must match!
Example: Convert a 16-bit grayscale image to a 32-bit RGBA image with half of the width: