Package jjil.core

Examples of jjil.core.Error$PACKAGE


     * @throws jjil.core.Error if no components were found in the input image
     */
    public Image getFront() throws Error {
        if (this.getComponentCount() == 0 ||
                this.imLabeled == null) {
            throw new Error(
                    Error.PACKAGE.CORE,
                    jjil.core.ErrorCodes.NO_RESULT_AVAILABLE,
                    null,
                    null,
                    null);
View Full Code Here


     * @throws jjil.core.Error
     *             if the image is not a gray 8-bit image.
     */
    public void push(Image image) throws jjil.core.Error {
        if (!(image instanceof Gray8Image)) {
            throw new Error(
                    Error.PACKAGE.ALGORITHM,
                    ErrorCodes.IMAGE_NOT_GRAY8IMAGE,
                    image.toString(),
                    null,
                    null);
View Full Code Here

           throws jjil.core.Error, IOException
        {
            char[] rC = new char[6];
            isr.read(rC, 0, 6);
            if ("(hwcs ".compareTo(new String(rC)) != 0) { //$NON-NLS-1$
                throw new Error(
                                Error.PACKAGE.ALGORITHM,
                                ErrorCodes.PARSE_ERROR,
                                new String(rC),
                                "(hwcs ",
                                isr.toString());
View Full Code Here

           throws jjil.core.Error, IOException
        {
            char[] rC = new char[5];
            isr.read(rC, 0, 5);
            if ("(hcs ".compareTo(new String(rC)) != 0) { //$NON-NLS-1$
                throw new Error(
                                Error.PACKAGE.ALGORITHM,
                                ErrorCodes.PARSE_ERROR,
                                new String(rC),
                                "(hcs ",
                                isr.toString());
View Full Code Here

            this.nPixelCount++;
        }

        public int compareTo(Object o) throws jjil.core.Error {
            if (o == null) {
                throw new Error(
                        Error.PACKAGE.ALGORITHM,
                        ErrorCodes.CONN_COMP_LABEL_COMPARETO_NULL,
                        null,
                        null,
                        null);
            }
            if (!(o instanceof Label)) {
                throw new Error(
                        Error.PACKAGE.ALGORITHM,
                        ErrorCodes.OBJECT_NOT_EXPECTED_TYPE,
                        o.toString(),
                        "Label",
                        null);
View Full Code Here

     * @throws jjil.core.Error if the input image is not gray,
     * or the trapezoid already specified extends outside its bounds.
     */
    public void push(Image image) throws jjil.core.Error {
        if (!(image instanceof Gray8Image)) {
            throw new Error(
            Error.PACKAGE.ALGORITHM,
            ErrorCodes.IMAGE_NOT_GRAY8IMAGE,
            image.toString(),
            null,
            null);
View Full Code Here

     * @throws jjil.core.Error if the warp is not 2x3 or the warp is not
     * decomposable (warp[0][0] or warp[1][1] is 0).
     */
    public void setWarp(double[][] warp) throws jjil.core.Error {
        if (warp.length != 2 || warp[0].length != 3 || warp[1].length != 3) {
            throw new Error(
                            Error.PACKAGE.ALGORITHM,
                            jjil.algorithm.ErrorCodes.PARAMETER_WRONG_SIZE,
                            warp.toString(),
                            null,
                            null);
View Full Code Here

    }
   
    @Override
    public void push(Image imageInput) throws Error {
        if (!(imageInput instanceof RgbImage)) {
            throw new Error(
            Error.PACKAGE.ALGORITHM,
            ErrorCodes.IMAGE_NOT_RGBIMAGE,
            imageInput.toString(),
            null,
            null);
View Full Code Here

     * @param nNoise the noise level.
     * @throws jjil.core.Error if the input point spread function is not a Gray8Image or not square.
     */
    public Gray8WienerDeconv(Gray8Image psf, int nNoise) throws jjil.core.Error {
        if (psf.getWidth() != psf.getHeight()) {
            throw new Error(
                    Error.PACKAGE.ALGORITHM,
                    ErrorCodes.IMAGE_NOT_SQUARE,
                    psf.toString(),
                    null,
                    null);
        }
        if (!(psf instanceof Gray8Image)) {
            throw new Error(
                    Error.PACKAGE.ALGORITHM,
                    ErrorCodes.IMAGE_NOT_GRAY8IMAGE,
                    psf.toString(),
                    null,
                    null);
View Full Code Here

     * @param im the input Gray8Image.
     * @throws jjil.core.Error if the input image is not a Gray8Image or not square.
     */
    public void push(Image im) throws jjil.core.Error {
        if (im.getWidth() != im.getHeight()) {
            throw new Error(
                    Error.PACKAGE.ALGORITHM,
                    ErrorCodes.IMAGE_NOT_SQUARE,
                    im.toString(),
                    null,
                    null);
        }
        if (im.getWidth() != this.cxmPsfInv.getWidth() ||
          im.getHeight() != this.cxmPsfInv.getHeight()) {
            throw new Error(
                    Error.PACKAGE.ALGORITHM,
                    ErrorCodes.IMAGE_SIZES_DIFFER,
                    im.toString(),
                    this.cxmPsfInv.toString(),
                    null);
        }
        if (!(im instanceof Gray8Image)) {
            throw new Error(
                    Error.PACKAGE.ALGORITHM,
                    ErrorCodes.IMAGE_NOT_GRAY8IMAGE,
                    im.toString(),
                    null,
                    null);
View Full Code Here

TOP

Related Classes of jjil.core.Error$PACKAGE

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.