Package jjil.core

Examples of jjil.core.Gray8OffsetImage


        this.nYOffset = -this.nMinY;
        if (this.eWarpOrder == WarpOrder.WARP_X_FIRST) {
            Gray8Image grayX = warpX((Gray8Image) image);
            //super.setOutput(new Gray8OffsetImage(grayX, this.nXOffset, this.nYOffset));
            Gray8Image grayY = warpY(grayX);
            super.setOutput(new Gray8OffsetImage(grayY, this.nXOffset, this.nYOffset));
        } else {
            Gray8Image grayY = warpY((Gray8Image) image);
            //super.setOutput(new Gray8OffsetImage(grayY, this.nXOffset, this.nYOffset));
            Gray8Image grayX = warpX(grayY);
            super.setOutput(new Gray8OffsetImage(grayX, this.nXOffset, this.nYOffset));
        }
    }
View Full Code Here


            null,
            null);
        }
       
        super.setOutput(
                new Gray8OffsetImage(doWarp((Gray8Image) image),
                    this.nXOffset,
                    this.nYOffset));
    }
View Full Code Here

                    dataOut[(y-nMinY)*grayOut.getWidth()+(x-nMinX)] = (byte) (
                            (1.0d-yFrac) * x1 + yFrac * x2);
                }
            }
        }
        return new Gray8OffsetImage(grayOut, this.nXOffset, this.nYOffset);
    }
View Full Code Here

            null,
            null);
        }
        this.selectRed.push(imageInput);
        this.grayWarp.push(this.selectRed.getFront());
        Gray8OffsetImage warpedRed = (Gray8OffsetImage) this.grayWarp.getFront();
        this.selectGreen.push(imageInput);
        this.grayWarp.push(this.selectGreen.getFront());
        Gray8OffsetImage warpedGreen = (Gray8OffsetImage) this.grayWarp.getFront();
        this.selectBlue.push(imageInput);
        this.grayWarp.push(this.selectBlue.getFront());
        Gray8OffsetImage warpedBlue = (Gray8OffsetImage) this.grayWarp.getFront();
        RgbImage rgb = Gray3Bands2Rgb.push(warpedRed, warpedGreen, warpedBlue);
        super.setOutput(new RgbOffsetImage(
                rgb,
                warpedRed.getXOffset(),
                warpedRed.getYOffset()));
View Full Code Here

        this.nYOffset = nYOffset;
        this.oSubImageReady = false;
        // create an output image. We'll reuse this
        // image, changing the contents and offset,
        // for every Gray8OffsetImage we output.
        super.imageOutput = new Gray8OffsetImage(
            this.nWidth,
            this.nHeight,
            0,
            0);
    }
View Full Code Here

            null,
            null);
        }
        this.selectRed.push(imageInput);
        this.grayWarp.push(this.selectRed.getFront());
        Gray8OffsetImage warpedRed = (Gray8OffsetImage) this.grayWarp.getFront();
        this.selectGreen.push(imageInput);
        this.grayWarp.push(this.selectGreen.getFront());
        Gray8OffsetImage warpedGreen = (Gray8OffsetImage) this.grayWarp.getFront();
        this.selectBlue.push(imageInput);
        this.grayWarp.push(this.selectBlue.getFront());
        Gray8OffsetImage warpedBlue = (Gray8OffsetImage) this.grayWarp.getFront();
        RgbImage rgb = Gray3Bands2Rgb.push(warpedRed, warpedGreen, warpedBlue);
        super.setOutput(new RgbOffsetImage(
                rgb,
                warpedRed.getXOffset(),
                warpedRed.getYOffset()));
View Full Code Here

        this.nXOffset = nXOffset;
        this.nYOffset = nYOffset;
        // create an output image. We'll reuse this
        // image, changing the contents and offset,
        // for every Gray8OffsetImage we output.
        super.imageOutput = new Gray8OffsetImage(
            this.nWidth,
            this.nHeight,
            0,
            0);
    }
View Full Code Here

                            ErrorCodes.IMAGE_NOT_GRAY8IMAGE,
                            imageOutput.toString(),
                            null,
                            null);
        }
        Gray8OffsetImage imageResult = (Gray8OffsetImage) super.imageOutput;
        imageResult.setXOffset(nHOffset);
        imageResult.setYOffset(nVOffset);
        byte[] dataOut = imageResult.getData();
        for (int i=0; i<this.nHeight; i++) {
            int nVInLoc = i + nVOffset;
            System.arraycopy(
                    dataIn,
                    nVInLoc*this.imageInput.getWidth() + nHOffset,
View Full Code Here

                      null,
                      null);
        }
        Gray32Image imageResult;
        if (image instanceof Gray8OffsetImage) {
            Gray8OffsetImage sub = (Gray8OffsetImage) image;
            imageResult =
                    new Gray32OffsetImage(sub.getWidth(),
                        sub.getHeight(),
                        sub.getXOffset(),
                        sub.getYOffset());
        } else {
            // must be a Gray8Image
            imageResult =
                    new Gray32Image(image.getWidth(), image.getHeight());
        }
View Full Code Here

        this.nYOffset = nYOffset;
        this.oSubImageReady = false;
        // create an output image. We'll reuse this
        // image, changing the contents and offset,
        // for every Gray8OffsetImage we output.
        super.imageOutput = new Gray8OffsetImage(
            this.nWidth,
            this.nHeight,
            0,
            0);
    }
View Full Code Here

TOP

Related Classes of jjil.core.Gray8OffsetImage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.