\r
import jp.nyatla.nyartoolkit.NyARException;\r
import jp.nyatla.nyartoolkit.core.raster.INyARRaster;\r
-import jp.nyatla.nyartoolkit.core.rasterreader.INyARBufferReader;\r
import jp.nyatla.nyartoolkit.core.types.NyARIntSize;\r
\r
\r
public NyARRasterFilter_SimpleSmooth(int i_raster_type) throws NyARException\r
{\r
switch (i_raster_type) {\r
- case INyARBufferReader.BUFFERFORMAT_INT1D_GRAY_8:\r
+ case INyARRaster.BUFFERFORMAT_INT1D_GRAY_8:\r
this._do_filter_impl=new IdoFilterImpl_GRAY_8();\r
break;\r
default:\r
public void doFilter(INyARRaster i_input, INyARRaster i_output) throws NyARException\r
{\r
assert (i_input!=i_output);\r
- this._do_filter_impl.doFilter(i_input.getBufferReader(),i_output.getBufferReader(),i_input.getSize());\r
+ this._do_filter_impl.doFilter(i_input,i_output,i_input.getSize());\r
}\r
\r
interface IdoFilterImpl\r
{\r
- public void doFilter(INyARBufferReader i_input, INyARBufferReader i_output,NyARIntSize i_size) throws NyARException;\r
+ public void doFilter(INyARRaster i_input, INyARRaster i_output,NyARIntSize i_size) throws NyARException;\r
}\r
class IdoFilterImpl_GRAY_8 implements IdoFilterImpl\r
{\r
- public void doFilter(INyARBufferReader i_input, INyARBufferReader i_output,NyARIntSize i_size) throws NyARException\r
+ public void doFilter(INyARRaster i_input, INyARRaster i_output,NyARIntSize i_size) throws NyARException\r
{\r
- assert (i_input.isEqualBufferType(INyARBufferReader.BUFFERFORMAT_INT1D_GRAY_8));\r
- assert (i_output.isEqualBufferType(INyARBufferReader.BUFFERFORMAT_INT1D_GRAY_8));\r
+ assert (i_input.isEqualBufferType(INyARRaster.BUFFERFORMAT_INT1D_GRAY_8));\r
+ assert (i_output.isEqualBufferType(INyARRaster.BUFFERFORMAT_INT1D_GRAY_8));\r
int[] in_ptr =(int[])i_input.getBuffer();\r
int[] out_ptr=(int[])i_output.getBuffer();\r
/* 画像端は捨てる。\r