Compare Revisions
Last modification
- Rev 5 2014-01-29 14:10:30
- Author: PointedEars
- Log message:
Adapted/fixed for OpenCV 2.4.6 and Qt 4.8.6 on GNU/Linux
/trunk/Chapter 04/histograms.cpp |
18,8 → 18,8 |
#include <iostream> |
using namespace std; |
|
#include "cv.h" |
#include "highgui.h" |
#include <opencv/cv.h> |
#include <opencv/highgui.h> |
#include "histogram.h" |
|
int main() |
79,11 → 79,11 |
cv::imshow("Stretched Histogram",h.getHistogramImage(str)); |
|
// Create an image inversion table |
uchar lookup[256]; |
cv::Mat lookup; |
|
for (int i=0; i<256; i++) { |
|
lookup[i]= 255-i; |
lookup.data[i]= 255-i; |
} |
|
// Apply lookup and display negative image |