Tags » Shri

strange cvSaveImage behavior

i have recently started using opencv and this one has baffled me.

void saveImageSnippet(char *imageName, int height, int width, void* data, int nChannels) //data is char
{
    char fName="c:\\testimg\\";
    FILE *fptr;
    IplImage *img;
    sprintf(fName,"%s%s.bmp",fName,imageName);  
    img = cvCreateImageHeader(cvSize(width, height),8/*depth*/,nChannels);
    img->imageData=(unsigned char*)data;
    cvSaveImage(fName, img); //Unhandled exception 
    cvReleaseImage(&img);   
}
… 43 more words
Recent Questions - Stack Overflow

unexpected end of regular expression

I want to get only the file name with extension from the path:

C:\\Users\\anandada\\workspace\\MyTestProject\\src\\OpenTest.c

The statement below,

fileName = re.match("[^\\]*.c$", fileName)

gives error:

unexpected end of regular expression…

17 more words
Recent Questions - Stack Overflow

A peacock feather & flute defines him all!

Sorry for inconvenience, but the blog is shifted to following address, click on the link below:-

http://dev-viraj.blogspot.in/

-admin

Flute

Thiru

Thiru (திரு) is the tamil form of Shri. Even when we address some one we use the word Shri so and so or Shrimathi so and so. 225 more words

Sri Krishna Matha, Udupi, Karnataka, India

Sri Krishna Matha is a famous Hindu temple dedicated to god Krishna located in the town of Udupi in Karnataka, India.The Krishna Matha was founded by the Vaishnavite saint Shri Madhwacharya in the 13th century. 133 more words

Incredible India