Compare functions after normalize

Hey, guys! I'm doing a video reading and for each frame I need to calculate the average standard deviation and the variance. (I did these calculations without problems using the openCv method).

Now, after normalizing each of the frames, I need to compare the two functions (the original and normalized) using metric L1 (manhattan distance).

Does anyone have any ideas or suggestions on how this can be done?

edit retag close merge delete

just curious, how did you do the normalization, and what are you trying to achieve, in general ?

I used the function http://docs.opencv.org/2.4.8/modules/core/doc/operations_on_arrays.html?highlight=normalize#cv2.normalize (Core.Normalize()).

I could not do question four.;

(DataMeasures on Image Sequences) Define three different data measures Di (t), i = 1, 2, 3, for analysing image sequences. Your program should do the following: 1. Read as input an image sequence (e.g. in VGA format) of at least 50 frames. 2. Calculate your data measures Di (t), i = 1, 2, 3, for those frames. 3. Normalize the obtained functions such that all have the same mean and the same variance. 4. Compare the normalized functions by using the L1-metric. Discuss the degree of structural similarity between your measures in dependence of the chosen input sequence of images.

Sort by » oldest newest most voted

the comparison can be done with a simple norm()

like:

double distance = norm( a, b, Core.NORM_L1 );
more