Package jjil.core

Examples of jjil.core.Error


            Gray8Image imBlue) throws jjil.core.Error {
        if (imRed.getWidth() != imGreen.getWidth() ||
            imGreen.getWidth() != imBlue.getWidth() ||
            imRed.getHeight() != imGreen.getHeight() ||
            imGreen.getHeight() != imBlue.getHeight()) {
            throw new Error(
                      Error.PACKAGE.ALGORITHM,
                      ErrorCodes.IMAGE_SIZES_DIFFER,
                      imRed.toString(),
                      imGreen.toString(),
                      imBlue.toString());
View Full Code Here


        this.selectBlue = new RgbSelectGray(RgbSelectGray.BLUE);
    }
   
    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 image the input image
     * @throws jjil.core.Error if image is not an RgbImage
     */
    public void push(Image image) throws jjil.core.Error {
        if (!(image instanceof RgbImage)) {
            throw new Error(
                    Error.PACKAGE.ALGORITHM,
                    ErrorCodes.IMAGE_NOT_RGBIMAGE,
                    image.toString(),
                    null,
                    null);
View Full Code Here

     *    extends outside the input image, or the input image
     *    is not a Gray8Image.
     */
    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);
        }
        Gray8Image imageInput = (Gray8Image) image;
        if (this.cX + this.cWidth > image.getWidth() ||
            this.cY + this.cHeight > image.getHeight()) {
            throw new Error(
                            Error.PACKAGE.CORE,
                            jjil.core.ErrorCodes.BOUNDS_OUTSIDE_IMAGE,
                            image.toString(),
                            this.toString(),
                            null);
View Full Code Here

            int x,
            int y,
            int width,
            int height) throws jjil.core.Error {
        if (x<0 || y<0) {
            throw new Error(
                            Error.PACKAGE.CORE,
                            jjil.core.ErrorCodes.BOUNDS_OUTSIDE_IMAGE,
                            new Integer(x).toString(),
                            new Integer(y).toString(),
                            null);
        }
        if (width<=0 || height<=0) {
            throw new Error(
                            Error.PACKAGE.ALGORITHM,
                            ErrorCodes.INPUT_IMAGE_SIZE_NEGATIVE,
                            new Integer(width).toString(),
                            new Integer(height).toString(),
                            null);
View Full Code Here

     * @param image the input Gray8Image
     * @throws jjil.core.Error if image is not a Gray8Image
     */
    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

     * less than or equal to 1 or greater than the number of coefficients
     * we're precomputed.
     */
    public void setSigma(int cSigma) throws jjil.core.Error {
        if (cSigma <= 1 || cSigma >= this.nCoeff.length) {
            throw new Error(
                      Error.PACKAGE.ALGORITHM,
                      ErrorCodes.PARAMETER_OUT_OF_RANGE,
                      new Integer(cSigma).toString(),
                      new Integer(1).toString(),
                      new Integer(this.nCoeff.length).toString());
View Full Code Here

     * @throws jjil.core.Error if  the input image
     *    is not an RgbImage.
     */
    public void push(Image image) throws jjil.core.Error {
        if (!(image instanceof RgbMaskedImage)) {
            throw new Error(
                            Error.PACKAGE.ALGORITHM,
                            ErrorCodes.OBJECT_NOT_EXPECTED_TYPE,
                            image.toString(),
                            "RgbMaskedImage",
                            null);
View Full Code Here

     * @param image the input Gray8Image
     * @throws jjil.core.Error if the input is not a Gray8Image.
     */
    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

     * @param cSigma the new sigma value
     * @throws jjil.core.Error if cSigma is out of range.
     */
    public void setSigma(int cSigma) throws jjil.core.Error {
        if (cSigma <= 1 || cSigma >= this.nCoeff.length) {
            throw new Error(
              Error.PACKAGE.ALGORITHM,
              ErrorCodes.PARAMETER_OUT_OF_RANGE,
              new Integer(cSigma).toString(),
              new Integer(1).toString(),
              new Integer(this.nCoeff.length).toString());
View Full Code Here

TOP

Related Classes of jjil.core.Error

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.