X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=samples%2Fc%2Fdemhist.c;h=22e9ea63955f7a208926bda5a8ed5025a53ff3b5;hb=e4c14cdbdf2fe805e79cd96ded236f57e7b89060;hp=a3e9972f8b3b3a76b94109a1060fe0cb4d6d88d4;hpb=454138ff8a20f6edb9b65a910101403d8b520643;p=opencv diff --git a/samples/c/demhist.c b/samples/c/demhist.c index a3e9972..22e9ea6 100644 --- a/samples/c/demhist.c +++ b/samples/c/demhist.c @@ -2,6 +2,8 @@ #pragma package #endif +#define CV_NO_BACKWARD_COMPATIBILITY + #ifndef _EiC #include "cv.h" #include "highgui.h" @@ -80,7 +82,7 @@ void update_brightcont( int arg ) cvRectangle( hist_image, cvPoint(i*bin_w, hist_image->height), cvPoint((i+1)*bin_w, hist_image->height - cvRound(cvGetReal1D(hist->bins,i))), cvScalarAll(0), -1, 8, 0 ); - + cvShowImage( "histogram", hist_image ); } @@ -110,7 +112,7 @@ int main( int argc, char** argv ) update_brightcont(0); cvWaitKey(0); - + cvReleaseImage(&src_image); cvReleaseImage(&dst_image);