Hi,
I am using a 16 bit "raw" image as my input data. The data can be a single image or a volume data. The program load a single or all the images in the memory and with the help of slider I can view these images in a sequence without any jerks (slow file operations). Now I have applied contrast to image by creating an image array and multiply this array with the contrast constant. But in a 16 bit signed image the value varies from -32768 to 32767 and when I multiply this image with a constant the value exceeds the limits.
Now I converted the image array to I32 so that the value wouldn't exceed the limit and with a loop I am clipping the value within -32768 to 32767 and it works fine but its too slow especially with a slider because for each image this loop runs for 256x256 times and I have above 450 images simultaneously in the memory.
Any efficient solution......?
Thanks in advance
Bilal