Ask Your Question

Revision history [back]

Here are the steps to follow!

  1. Threshold your input image in the Range 2000-3000;
  2. Convert To 8 bit using the new min max value like this

    double min=2000; double max=3000; src.convertTo( dis, CV_8U, 255.0/(max-min), -min);

Here are the steps to follow!

  1. Threshold your input image in the Range 2000-3000;
  2. Convert To 8 bit using the new min max value like this

    double min=2000; double max=3000; max=3000;

    src.convertTo( dis, CV_8U, 255.0/(max-min), -min);