The flutter shutter camera simulator
Typedefs | Functions
midway.cpp File Reference

Midway contrast equalization routine (used here for constrast invariant RMSE) More...

#include <vector>
#include <algorithm>
Include dependency graph for midway.cpp:

Go to the source code of this file.

Typedefs

typedef std::pair< float, int > midway_pair

Functions

bool pairs_order (midway_pair P1, midway_pair P2)
void midway (float *I1, float *I2, int width, int height)

Detailed Description

Midway contrast equalization routine (used here for constrast invariant RMSE)

Author:
Yohann Tendero <yohann.tendero@cmla.ens-cachan.fr>

Definition in file midway.cpp.


Typedef Documentation

typedef std::pair<float,int> midway_pair

Definition at line 30 of file midway.cpp.


Function Documentation

void midway ( float *  I1,
float *  I2,
int  width,
int  height 
)

Step1. Sorts using midway_pairs P1 & P2 (P1.first contains I1 pixel values, and P1.second contains pixel indexes (usefull after the sorts) (same for P2 with I2))

Step2. Specification

Definition at line 47 of file midway.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool pairs_order ( midway_pair  P1,
midway_pair  P2 
)

Definition at line 32 of file midway.cpp.

Here is the caller graph for this function:

 All Files Functions Variables Typedefs Defines