protected bool initInstance(int i_threshold,int i_in_raster_type,int i_out_raster_type) { switch(i_out_raster_type){ case NyARBufferType.INT1D_BIN_8: switch (i_in_raster_type){ case NyARBufferType.BYTE1D_B8G8R8_24: case NyARBufferType.BYTE1D_R8G8B8_24: this._do_threshold_impl=new doThFilterImpl_BUFFERFORMAT_BYTE1D_RGB_24(); break; case NyARBufferType.BYTE1D_B8G8R8X8_32: this._do_threshold_impl=new doThFilterImpl_BUFFERFORMAT_BYTE1D_B8G8R8X8_32(); break; case NyARBufferType.BYTE1D_X8R8G8B8_32: this._do_threshold_impl=new doThFilterImpl_BUFFERFORMAT_BYTE1D_X8R8G8B8_32(); break; case NyARBufferType.INT1D_X8R8G8B8_32: this._do_threshold_impl=new doThFilterImpl_BUFFERFORMAT_INT1D_X8R8G8B8_32(); break; case NyARBufferType.WORD1D_R5G6B5_16LE: this._do_threshold_impl=new doThFilterImpl_BUFFERFORMAT_WORD1D_R5G6B5_16LE(); break; default: return false;//サポートしない組み合わせ } break; default: return false;//サポートしない組み合わせ } this._threshold = i_threshold; return true; }
protected bool initInstance(int i_in_raster_type, int i_out_raster_type) { switch (i_out_raster_type) { case NyARBufferType.INT1D_GRAY_8: switch (i_in_raster_type) { case NyARBufferType.BYTE1D_B8G8R8_24: case NyARBufferType.BYTE1D_R8G8B8_24: this._do_filter_impl = new doThFilterImpl_BYTE1D_B8G8R8_24(); break; case NyARBufferType.BYTE1D_B8G8R8X8_32: this._do_filter_impl = new doThFilterImpl_BYTE1D_B8G8R8X8_32(); break; case NyARBufferType.INT1D_X8R8G8B8_32: this._do_filter_impl = new doThFilterImpl_BUFFERFORMAT_INT1D_X8R8G8B8_32(); break; case NyARBufferType.WORD1D_R5G6B5_16LE: this._do_filter_impl = new doThFilterImpl_BUFFERFORMAT_WORD1D_R5G6B5_16LE(); break; default: return(false); } break; default: return(false); } return(true); }
protected bool initInstance(int i_in_raster_type, int i_out_raster_type) { switch (i_out_raster_type) { case NyARBufferType.INT1D_BIN_8: switch (i_in_raster_type) { case NyARBufferType.BYTE1D_X8R8G8B8_32: this._do_threshold_impl = new doThFilterImpl_BUFFERFORMAT_BYTE1D_X8R8G8B8_32(); break; case NyARBufferType.BYTE1D_R8G8B8_24: this._do_threshold_impl = new doThFilterImpl_BUFFERFORMAT_BYTE1D_R8G8B8_24(); break; default: return(false); } break; default: return(false); } return(true); }
protected bool initInstance(int i_in_raster_type, int i_out_raster_type) { switch (i_out_raster_type) { case NyARBufferType.INT1D_BIN_8: switch (i_in_raster_type) { case NyARBufferType.BYTE1D_X8R8G8B8_32: this._do_threshold_impl = new doThFilterImpl_BUFFERFORMAT_BYTE1D_X8R8G8B8_32(); break; default: return false; } break; default: return false; } return true; }
protected bool initInstance(int i_in_raster_type,int i_out_raster_type) { switch(i_out_raster_type){ case NyARBufferType.INT1D_GRAY_8: switch (i_in_raster_type){ case NyARBufferType.BYTE1D_B8G8R8_24: case NyARBufferType.BYTE1D_R8G8B8_24: this._do_filter_impl=new doThFilterImpl_BYTE1D_B8G8R8_24(); break; case NyARBufferType.BYTE1D_B8G8R8X8_32: this._do_filter_impl=new doThFilterImpl_BYTE1D_B8G8R8X8_32(); break; default: return false; } break; default: return false; } return true; }
protected bool initInstance(int i_threshold, int i_in_raster_type, int i_out_raster_type) { switch (i_out_raster_type) { case NyARBufferType.INT1D_BIN_8: switch (i_in_raster_type) { case NyARBufferType.BYTE1D_B8G8R8_24: case NyARBufferType.BYTE1D_R8G8B8_24: this._do_threshold_impl = new doThFilterImpl_BUFFERFORMAT_BYTE1D_RGB_24(); break; case NyARBufferType.BYTE1D_B8G8R8X8_32: this._do_threshold_impl = new doThFilterImpl_BUFFERFORMAT_BYTE1D_B8G8R8X8_32(); break; case NyARBufferType.BYTE1D_X8R8G8B8_32: this._do_threshold_impl = new doThFilterImpl_BUFFERFORMAT_BYTE1D_X8R8G8B8_32(); break; case NyARBufferType.INT1D_X8R8G8B8_32: this._do_threshold_impl = new doThFilterImpl_BUFFERFORMAT_INT1D_X8R8G8B8_32(); break; case NyARBufferType.WORD1D_R5G6B5_16LE: this._do_threshold_impl = new doThFilterImpl_BUFFERFORMAT_WORD1D_R5G6B5_16LE(); break; default: return(false); //サポートしない組み合わせ } break; default: return(false); //サポートしない組み合わせ } this._threshold = i_threshold; return(true); }