Package jjil.core

Examples of jjil.core.Error$PACKAGE


     * @param image the input image.
     * @throws jjil.core.Error if the input image is not gray.
     */
    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 histTarget does not have 256
     * elements.
     */
    public void setHistogram(int[] histTarget) throws jjil.core.Error {
        if (histTarget.length != 256) {
            throw new Error(
            Error.PACKAGE.ALGORITHM,
            ErrorCodes.HISTOGRAM_LENGTH_NOT_256,
            histTarget.toString(),
            null,
            null);
View Full Code Here

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

     * @param im Input Gray8Image.
     * @throws jjil.core.Error if the input is not a Gray8Image or is 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 instanceof Gray8Image)) {
            throw new Error(
                            Error.PACKAGE.ALGORITHM,
                            ErrorCodes.IMAGE_NOT_GRAY8IMAGE,
                            im.toString(),
                            null,
                            null);
View Full Code Here

     * @param nStdDev Input standard deviation, multiplied by 100.
     * @throws jjil.core.Error if the parameter is out of range.
     */
    public void setStdDev(int nStdDev) throws jjil.core.Error {
        if (nStdDev < 0 || nStdDev > this.rxnCoeffs.length) {
            throw new Error(
                            Error.PACKAGE.ALGORITHM,
                            ErrorCodes.PARAMETER_OUT_OF_RANGE,
                            new Integer(nStdDev).toString(),
                            new Integer(0).toString(),
                            new Integer(this.rxnCoeffs.length).toString());
View Full Code Here

     * @throws jjil.core.Error if the input is not a Gray8Image or is not a power of two in width and
     * height.
     */
    public void push(Image im) throws jjil.core.Error {
        if (!(im instanceof Gray8Image)) {
            throw new Error(
                    Error.PACKAGE.ALGORITHM,
                    ErrorCodes.IMAGE_NOT_GRAY8IMAGE,
                    im.toString(),
                    null,
                    null);
        }
        int nWidth = im.getWidth();
        int nHeight = im.getHeight();
        if ((nWidth & (nWidth-1)) != 0) {
            throw new Error(
                    Error.PACKAGE.ALGORITHM,
                    ErrorCodes.FFT_SIZE_NOT_POWER_OF_2,
                    im.toString(),
                    null,
                    null);
        }
        if ((nHeight & (nHeight-1)) != 0) {
            throw new Error(
                    Error.PACKAGE.ALGORITHM,
                    ErrorCodes.FFT_SIZE_NOT_POWER_OF_2,
                    im.toString(),
                    null,
                    null);
View Full Code Here

    public RgbImage push(
            RgbImage imRgb,
            Gray8Image imMask) throws jjil.core.Error {
        if (imRgb.getWidth() != imMask.getWidth() ||
            imRgb.getHeight() != imMask.getHeight()) {
            throw new Error(
                            Error.PACKAGE.CORE,
                            jjil.core.ErrorCodes.IMAGE_MASK_SIZE_MISMATCH,
                            imRgb.toString(),
                            imMask.toString(),
                            null);
View Full Code Here

     * @param im Input Gray8Image.
     * @throws jjil.core.Error if the input is not of type Gray8Image.
     */
    public void push(Image im) throws jjil.core.Error {
        if (!(im instanceof Gray8Image)) {
            throw new Error(
                      Error.PACKAGE.ALGORITHM,
                      ErrorCodes.IMAGE_NOT_GRAY8IMAGE,
                      im.toString(),
                      null,
                      null);
View Full Code Here

     */
    public RgbMultiVecThresh(int [] rgbVals, int[] rgbVecs, int nThreshold)
            throws Error
    {
        if (rgbVals.length != rgbVecs.length) {
            throw new Error(
                            Error.PACKAGE.ALGORITHM,
                            ErrorCodes.PARAMETER_SIZES_DIFFER,
                            rgbVals.toString(),
                            rgbVals.toString(),
                            null);
View Full Code Here

     * @param imageInput input RgbImage
     * @throws jjil.core.Error if input is not an RgbImage.
     */
    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

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.