void ossimCFARFilter::initialize() { //--- // NOTE: // Since initialize get called often sequentially we will wipe things slick // but not reallocate to avoid multiple delete/allocates. // // On the first getTile call things will be reallocated/computed. //--- theTile = NULL; clearNullMinMax(); }
void rspf3x3ConvolutionFilter::setKernel(double kernel[3][3]) { theKernel[0][0] = kernel[0][0]; theKernel[0][1] = kernel[0][1]; theKernel[0][2] = kernel[0][2]; theKernel[1][0] = kernel[1][0]; theKernel[1][1] = kernel[1][1]; theKernel[1][2] = kernel[1][2]; theKernel[2][0] = kernel[2][0]; theKernel[2][1] = kernel[2][1]; theKernel[2][2] = kernel[2][2]; // Will be recomputed first getTile call. clearNullMinMax(); }
void ossimCFARFilter::setKernel(double kernel[5][5]) { for(ossim_int32 r = 0; r < 5; r++) { for(ossim_int32 c = 0; c < 5; c++) { theKernel[r][c] = kernel[r][c]; } } /* theKernel[0][0] = kernel[0][0]; theKernel[0][1] = kernel[0][1]; theKernel[0][2] = kernel[0][2]; theKernel[1][0] = kernel[1][0]; theKernel[1][1] = kernel[1][1]; theKernel[1][2] = kernel[1][2]; theKernel[2][0] = kernel[2][0]; theKernel[2][1] = kernel[2][1]; theKernel[2][2] = kernel[2][2]; */ // Will be recomputed first getTile call. clearNullMinMax(); }