C #include <cv.h> #include <highgui.h> int main(int argc, char **argv) { IplImage *src_img=0, *gray_img; IplImage *bin_img, *bininv_img, *trunc_img, *tozero_img, *tozeroinv_img; IplImage *adaptive_img; char *imagename; // (1)load a specified file and convert it into grayscale image. // allocate destination images. imagename = argc > 1 ? argv[1] : "../image/trains.png"; src_img = cvLoadImage(imagen