SampleModel sm = im.getSampleModel();
if (sm instanceof ComponentSampleModel) {
switch (sm.getDataType()) {
case DataBuffer.TYPE_BYTE:
return new RectIterCSMByte(im, bounds);
case DataBuffer.TYPE_SHORT:
// return new RectIterCSMShort(im, bounds);
break;
case DataBuffer.TYPE_USHORT:
// return new RectIterCSMUShort(im, bounds);