Examples of lookupPixel()


Examples of java.awt.image.ByteLookupTable.lookupPixel()

    ByteLookupTable t = new ByteLookupTable(100, data);
   
    try
    {
      int[] src = new int[] {100, 102, 101, 120};
      t.lookupPixel(src, null);
      harness.check(false);
    }
    catch (ArrayIndexOutOfBoundsException ex)
    {
      harness.check(true);
View Full Code Here

Examples of java.awt.image.ByteLookupTable.lookupPixel()

    }
   
    try
    {
      byte[] src = new byte[] {120};
      t.lookupPixel(src, null);
      harness.check(false);
    }
    catch (ArrayIndexOutOfBoundsException ex)
    {
      harness.check(true);
View Full Code Here

Examples of java.awt.image.LookupTable.lookupPixel()

            for(int i=offset; i<=255; i++){
                // Fill in source array
                for(int j=0; j<nComponents; j++) src[j] = i;

                // Get destination values
                lookupTable.lookupPixel(src, dest);

                // Fill in string buffers
                for(int j=0; j<nComponents; j++){
                    lookupTableBuf[j].append(doubleString(dest[j]/255.));
                    // lookupTableBuf[j].append(Integer.toString(dest[j]));
View Full Code Here

Examples of java.awt.image.LookupTable.lookupPixel()

            for(int i=offset; i<=255; i++){
                // Fill in source array
                Arrays.fill( src, i );

                // Get destination values
                lookupTable.lookupPixel(src, dest);

                // Fill in string buffers
                for(int j=0; j<nComponents; j++){
                    lookupTableBuf[j].append(doubleString( dest[j]/255.0) ).append(SPACE);
                }
View Full Code Here

Examples of java.awt.image.LookupTable.lookupPixel()

            for(int i=offset; i<=255; i++){
                // Fill in source array
                for(int j=0; j<nComponents; j++) src[j] = i;

                // Get destination values
                lookupTable.lookupPixel(src, dest);

                // Fill in string buffers
                for(int j=0; j<nComponents; j++){
                    lookupTableBuf[j].append(doubleString(dest[j]/255.));
                    // lookupTableBuf[j].append(Integer.toString(dest[j]));
View Full Code Here

Examples of java.awt.image.LookupTable.lookupPixel()

            for(int i=offset; i<=255; i++){
                // Fill in source array
                Arrays.fill( src, i );

                // Get destination values
                lookupTable.lookupPixel(src, dest);

                // Fill in string buffers
                for(int j=0; j<nComponents; j++){
                    lookupTableBuf[j].append(doubleString( dest[j]/255.0) ).append(SPACE);
                }
View Full Code Here

Examples of java.awt.image.LookupTable.lookupPixel()

            for(int i=offset; i<=255; i++){
                // Fill in source array
                for(int j=0; j<nComponents; j++) src[j] = i;

                // Get destination values
                lookupTable.lookupPixel(src, dest);

                // Fill in string buffers
                for(int j=0; j<nComponents; j++){
                    lookupTableBuf[j].append(doubleString(dest[j]/255.));
                    // lookupTableBuf[j].append(Integer.toString(dest[j]));
View Full Code Here

Examples of java.awt.image.LookupTable.lookupPixel()

            for(int i=offset; i<=255; i++){
                // Fill in source array
                for(int j=0; j<nComponents; j++) src[j] = i;

                // Get destination values
                lookupTable.lookupPixel(src, dest);

                // Fill in string buffers
                for(int j=0; j<nComponents; j++){
                    lookupTableBuf[j].append(doubleString(dest[j]/255.));
                    // lookupTableBuf[j].append(Integer.toString(dest[j]));
View Full Code Here

Examples of java.awt.image.ShortLookupTable.lookupPixel()

    short[] data = {105, 104, 103, 102, 101, 100};
    ShortLookupTable t = new ShortLookupTable(100, data);
   
    // check 1-band source with 1-band lookup table
    int[] src = new int[] {100};
    int[] dst = t.lookupPixel(src, null);
    harness.check(dst[0], 105);
   
    src = new int[] {101};
    dst = new int[] {0};
    dst = t.lookupPixel(src, dst);
View Full Code Here

Examples of java.awt.image.ShortLookupTable.lookupPixel()

    int[] dst = t.lookupPixel(src, null);
    harness.check(dst[0], 105);
   
    src = new int[] {101};
    dst = new int[] {0};
    dst = t.lookupPixel(src, dst);
    harness.check(dst[0], 104);
   
    // check 3-band source with 1-band lookup table
    src = new int[] {100, 101, 102};
    try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.