package pl.wroc.pwr.image.model; import pl.wroc.pwr.image.IXYZImage; import pl.wroc.pwr.imagechannel.IImageChannel; import pl.wroc.pwr.imagechannel.IPixel; public class XYZImage extends MultiChannelImage implements IXYZImage { /** * */ private static final long serialVersionUID = 1468960032098150961L; public static int CHANNEL_X = 0; public static int CHANNEL_Y = 1; public static int CHANNEL_Z = 2; public XYZImage( int sizeX, int sizeY ) { super( 3, sizeX, sizeY ); } public XYZImage( int[ ] size ) { this( size[ IPixel.X ], size[ IPixel.Y ] ); } public IImageChannel getXChannel( ) { return this.getChannel( XYZImage.CHANNEL_X ); } public IImageChannel getYChannel( ) { return this.getChannel( XYZImage.CHANNEL_Y ); } public IImageChannel getZChannel( ) { return this.getChannel( XYZImage.CHANNEL_Z ); } public void setXChannel( IImageChannel channel ) { this.setChannel( channel, XYZImage.CHANNEL_X ); } public void setYChannel( IImageChannel channel ) { this.setChannel( channel, XYZImage.CHANNEL_Y ); } public void setZChannel( IImageChannel channel ) { this.setChannel( channel, XYZImage.CHANNEL_Z ); } }