Lines Matching full:m_dataset
159 m_dataset = NULL;
168 if( m_dataset != NULL ){
354 if( m_dataset == NULL || m_driver == NULL ){
364 int nChannels = m_dataset->GetRasterCount();
366 if( m_dataset->GetRasterBand(1)->GetColorTable() != NULL ){
367 gdalColorTable = m_dataset->GetRasterBand(1)->GetColorTable();
370 const GDALDataType gdalType = m_dataset->GetRasterBand(1)->GetRasterDataType();
380 GDALRasterBand* band = m_dataset->GetRasterBand(c+1);
428 m_dataset = (GDALDataset*) GDALOpen( m_filename.c_str(), GA_ReadOnly);
431 if( m_dataset == NULL ){
436 if( m_dataset->GetRasterCount() <= 0 ){
441 m_driver = m_dataset->GetDriver();
450 m_width = m_dataset->GetRasterXSize();
451 m_height= m_dataset->GetRasterYSize();
454 if( m_dataset->GetRasterCount() <= 0 ){
460 if( m_dataset->GetRasterBand(1)->GetColorInterpretation() == GCI_PaletteIndex ){
466 if( m_dataset->GetRasterBand(1)->GetColorTable() == NULL ){
473 tempType = gdalPaletteInterpretation2OpenCV( m_dataset->GetRasterBand(1)->GetColorTable()->GetPaletteInterpretation(),
474 m_dataset->GetRasterBand(1)->GetRasterDataType() );
491 tempType = gdal2opencv( m_dataset->GetRasterBand(1)->GetRasterDataType(), m_dataset->GetRasterCount() );
507 GDALClose((GDALDatasetH)m_dataset);
508 m_dataset = NULL;