diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-07-17 13:51:50 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-07-17 13:51:50 +0100 |
| commit | b86e859b9796468ef8b0d19ebd9f5f302101464c (patch) | |
| tree | d2634991550d23dee75888001019b4fa05a88af8 /rotord | |
| parent | e38d3d45600546b1ac2abaa1202cae189149d1b5 (diff) | |
revert multiply
Diffstat (limited to 'rotord')
| -rw-r--r-- | rotord/cvimage.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rotord/cvimage.cpp b/rotord/cvimage.cpp index cb10fdd..5402a8e 100644 --- a/rotord/cvimage.cpp +++ b/rotord/cvimage.cpp @@ -17,7 +17,12 @@ namespace Rotor { cerr<<"Rotor: cannot multiply images with different sizes! (wanted "<<w<<"x"<<h<<", got "<<other.w<<"x"<<other.h<<")"<<endl; } else { - rgb/=other.rgb; //counter intuitive! + //rgb/=other.rgb; //does funny glitchy stuff + //could use cv::Mat.mul() here + for (int i=0;i<w*h*3;i++){ + //calculate with tables + rgb.data[i]=pixels.multiply[rgb.data[i]][other.rgb.data[i]]; + } } return *this; } |
