protected bool initInstance(int i_raster_format,int i_vertical_interval) { switch (i_raster_format) { case NyARBufferType.BYTE1D_B8G8R8_24: case NyARBufferType.BYTE1D_R8G8B8_24: this._histImpl = new NyARRasterThresholdAnalyzer_Histogram_BYTE1D_RGB_24(); break; case NyARBufferType.INT1D_GRAY_8: this._histImpl = new NyARRasterThresholdAnalyzer_Histogram_INT1D_GRAY_8(); break; case NyARBufferType.BYTE1D_B8G8R8X8_32: this._histImpl = new NyARRasterThresholdAnalyzer_Histogram_BYTE1D_B8G8R8X8_32(); break; case NyARBufferType.BYTE1D_X8R8G8B8_32: this._histImpl = new NyARRasterThresholdAnalyzer_Histogram_BYTE1D_X8R8G8B8_32(); break; case NyARBufferType.WORD1D_R5G6B5_16LE: this._histImpl = new NyARRasterThresholdAnalyzer_Histogram_WORD1D_R5G6B5_16LE(); break; case NyARBufferType.INT1D_X8R8G8B8_32: this._histImpl = new NyARRasterThresholdAnalyzer_Histogram_INT1D_X8R8G8B8_32(); break; default: return false; } //初期化 this._vertical_skip=i_vertical_interval; return true; }
protected bool initInstance(int i_raster_format, int i_vertical_interval) { switch (i_raster_format) { case NyARBufferType.BYTE1D_B8G8R8_24: case NyARBufferType.BYTE1D_R8G8B8_24: this._histImpl = new NyARRasterThresholdAnalyzer_Histogram_BYTE1D_RGB_24(); break; case NyARBufferType.INT1D_GRAY_8: this._histImpl = new NyARRasterThresholdAnalyzer_Histogram_INT1D_GRAY_8(); break; case NyARBufferType.BYTE1D_B8G8R8X8_32: this._histImpl = new NyARRasterThresholdAnalyzer_Histogram_BYTE1D_B8G8R8X8_32(); break; case NyARBufferType.BYTE1D_X8R8G8B8_32: this._histImpl = new NyARRasterThresholdAnalyzer_Histogram_BYTE1D_X8R8G8B8_32(); break; case NyARBufferType.WORD1D_R5G6B5_16LE: this._histImpl = new NyARRasterThresholdAnalyzer_Histogram_WORD1D_R5G6B5_16LE(); break; case NyARBufferType.INT1D_X8R8G8B8_32: this._histImpl = new NyARRasterThresholdAnalyzer_Histogram_INT1D_X8R8G8B8_32(); break; default: return(false); } //初期化 this._vertical_skip = i_vertical_interval; return(true); }