Home | History | Annotate | Download | only in src

Lines Matching refs:fs

2366 static void *icvReadHist( CvFileStorage * fs, CvFileNode * node ){
2376 is_uniform = cvReadIntByName( fs, node, "is_uniform", 0 );
2377 have_ranges = cvReadIntByName( fs, node, "have_ranges", 0);
2384 CvMatND * mat = (CvMatND *) cvReadByName( fs, node, "mat" );
2407 h->bins = cvReadByName( fs, node, "bins" );
2427 thresh_node = cvGetFileNodeByName( fs, node, "thresh" );
2431 cvStartReadRawData( fs, thresh_node, &reader );
2435 cvReadRawDataSlice( fs, &reader, 2, h->thresh[i], "f" );
2447 cvReadRawDataSlice( fs, &reader, size[i]+1, dim_ranges, "f" );
2459 static void icvWriteHist( CvFileStorage* fs, const char* name, const void* struct_ptr,
2470 cvStartWriteStruct( fs, name, CV_NODE_MAP, CV_TYPE_NAME_HIST );
2475 cvWriteInt( fs, "is_uniform", is_uniform );
2476 cvWriteInt( fs, "have_ranges", have_ranges );
2478 cvWrite( fs, "mat", &(hist->mat) );
2481 cvWrite( fs, "bins", hist->bins );
2490 cvStartWriteStruct( fs, "thresh", CV_NODE_SEQ + CV_NODE_FLOW );
2493 cvWriteRawData( fs, hist->thresh[i], 2, "f" );
2498 cvWriteRawData( fs, hist->thresh2[i], sizes[i]+1, "f" );
2501 cvEndWriteStruct( fs );
2504 cvEndWriteStruct( fs );