Subversion Repositories seema-scanner

Rev

Rev 131 | Rev 136 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 131 Rev 132
Line 23... Line 23...
23
 
23
 
24
    // Loop through vector
24
    // Loop through vector
25
    for(int i=0; i<phaseVector.rows; i++){
25
    for(int i=0; i<phaseVector.rows; i++){
26
        // Amplitude of channels
26
        // Amplitude of channels
27
        float amp = 0.5*(1+cos(2*pi*i/pitch - phase));
27
        float amp = 0.5*(1+cos(2*pi*i/pitch - phase));
28
        phaseVector.at<cv::Vec3b>(i, 0) = cv::Vec3b(255.0*amp,255.0*amp,255.0*amp);
28
        phaseVector.at<cv::Vec3b>(i, 0) = cv::Vec3b(255.0*amp, 255.0*amp, 255.0*amp);
29
    }
29
    }
30
 
30
 
31
    return phaseVector;
31
    return phaseVector;
32
}
32
}
33
 
33