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
Stackoverflow

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
Stackoverflow

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

Play framework and html [on hold]

I want to include a html file in play framework, It is a plain html file which I use to build a graph(using d3). The html file is dynamic and not static. 153 more words

Stackoverflow

Heirarchial Webgrid with paging not working

I have a heirarchial(expand/collapse feature) mvc webgrid with canPage: true in the parent grid. First page is working perfectly. When I click on the next page, the parent grid and child grid are showing side by side as a single row instead the child grid should be within the parent grid. 206 more words

Stackoverflow