I have an array of BitmapFrames and need to do a histogram stretch. I know this is different from a histogram equalization, and what the final outcome is... sorta. the problem i
Don't forget to consider float. So a slight modification to dabonz413's answer:
maxVal = image.maximumValue() # 153 minVal = image.minumumValue() # 84 dynamic = maxVal-minVal for pixel in image.Pixels(): newPixel = ((float) (pixel-minVal)/dynamic)*255