Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to Change image intensity range

Hi,

I am working with image registration. I have gray-scale images (CV_8UC1). I have done the registration part. Now I want to check the alignment accuracy. I want to convert the intensity range to [-127 to 128] from [0 to 255]. How can I do that? What I am doing is:

  • subtract the aligned image from template
  • divide the result by 2
  • add 128 to result

Is this correct? Do I need to convert the images from 8U ?

Thanks

How to Change image intensity range

Hi,

I am working with image registration. I have gray-scale images (CV_8UC1). I have done the registration part. Now I want to check the alignment accuracy. I want to convert the intensity range to [-127 to 128] from [0 to 255]. How can I do that? What I am doing is:

  • subtract the aligned image from template
  • divide the result by 2
  • add 128 to result

Is this correct? Do I need to convert the images from 8U ?

Thanks