Package de.mpi.rgblab.color

Examples of de.mpi.rgblab.color.ColorModel


    saliency.clear();
    int[] sliceBoundaries = getSliceBoundaries(radius);

    Vector<ColorModel> labColors = new Vector<ColorModel>();
    VisUtil.rgbToLabColors(rgbColors, labColors);
    ColorModel currentPointColor;

    // int my_count1 = 0;
    // tmp variables
    // Iterator it_map_matrix1 = coordinates.iterator();
    // Iterator it_map_matrix2;
View Full Code Here


    // copy the the vector to an array
    ColorModel[] my_rgbColor = new ColorModel[rgbColors.size()];
    rgbColors.copyInto(my_rgbColor);

    // transfort to lab space
    ColorModel labColor[] = ColorTransformer.rgb2lab(my_rgbColor);

    // array to vector
    Vector<ColorModel> my_labColor = new Vector<ColorModel>();
    for (int i = 0; i < labColor.length; i++) {
      my_labColor.addElement(labColor[i]);
    }

    int my_count1 = 0;
    int count2 = 0;
    int countIterator2 = 0;

    // tmp variables
    Iterator it_map_matrix1 = inputData.iterator();
    // Iterator it_map_matrix2;
    // Iterator it_tmp = it_map_matrix1;

    double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
    Vector<Double> row1, row2;
    int classLabel = 0;
    ColorModel tmp;

    BufferedWriter out;
    FileWriter fw;

    ColorModel rgbWhite = new ColorModel(255, 255, 255, ColorType.RGB);
    ColorModel labWhite = ColorTransformer.rgb2lab(rgbWhite);

    System.out.println("START");

    try {
      File file = new File(outputFile);
View Full Code Here

    // copy the the vector to an array
    ColorModel[] my_rgbColor = new ColorModel[rgbColors.size()];
    rgbColors.copyInto(my_rgbColor);

    // transfort to lab space
    ColorModel labColor[] = ColorTransformer.rgb2lab(my_rgbColor);

    // array to vector
    Vector<ColorModel> my_labColor = new Vector<ColorModel>();
    for (int i = 0; i < labColor.length; i++) {
      my_labColor.addElement(labColor[i]);
    }

    int my_count1 = 0;
    int count2 = 0;
    int countIterator2 = 0;

    // tmp variables
    Iterator it_map_matrix1 = inputData.iterator();
    // Iterator it_map_matrix2;
    // Iterator it_tmp = it_map_matrix1;

    double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
    Vector<Double> row1, row2;
    int classLabel = 0;
    ColorModel tmp;

    BufferedWriter out;
    FileWriter fw;

    ColorModel rgbWhite = new ColorModel(255, 255, 255, ColorType.RGB);
    ColorModel labWhite = ColorTransformer.rgb2lab(rgbWhite);

    System.out.println("START");

    try {
      File file = new File(outputFile);
View Full Code Here

TOP

Related Classes of de.mpi.rgblab.color.ColorModel

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.