Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

changjiang7

@changjiang7
About
Posts
2
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • OPENCV in grey-scale, another1 know how to convert to a colour output ..
    C changjiang7

    #include "stdlib.h" #include "stdio.h" #include "cv.h" #include "highgui.h" char *filename; IplImage *image =0,*image2 =0, *image3=0; uchar* colourpixels; int main(int argc, char** argv) { cvNamedWindow("Source Image",2); cvNamedWindow("test",2); if(argc ==2) { filename=argv[1]; } else exit(0); if((image=cvLoadImage(filename,0))==0) return -1; image2= cvCloneImage(image); image3=cvCreateImage(cvSize(image->width, image->height), IPL_DEPTH_8U, 1); // create pixel by pixel for(int pos_y=0;pos_y<image2->height;pos_y++) { for(int pos_x=0;pos_x<image2->width;pos_x++) { colourpixels = &((uchar*)(image2->imageData+image2->widthStep*pos_y))[pos_x*1]; (image3->imageData+image3->widthStep*pos_y)[image3->width-1+(pos_x*1)]=*colourpixels; } } cvShowImage("Source Image",image); cvShowImage("test",image3); cvWaitKey(0); cvReleaseImage(&image2); cvReleaseImage(&image); return 0; }

    Visual Basic tutorial

  • rotating images using OPENCV ..
    C changjiang7

    i have done a program using function but is it possible for it to be done using array and pointer .. thx ..

    Visual Basic data-structures
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups