-1

Possible Duplicate:
How do I normalize an image?

I am working on the implementation of active contours with gradient vector flow. I need to normalize the input image in the interval from 0 to 1 Unfortunately, I do not know how to do this in JAVA or JAI. If you can help me with some of your code or some link which can me help, many thanks.

Community
  • 1
  • 1
Samot
  • 47
  • 6

1 Answers1

0

If you want to use an already existing library, I can recommend ImageJ, which has a good set of image processing algorithms. You can find more in this SO question.

If you want to implement it yourself, that's quiet easy. Find maximum and minimum of your image in a run, then run over it again, rescaling every point.

Community
  • 1
  • 1
brimborium
  • 9,362
  • 9
  • 48
  • 76