Class ColorIndexer


public class ColorIndexer extends BatchProcessorOperation
Loads image files and generates color index information for them.
Since:
0.12.0
Author:
Marco Schmidt
  • Field Details

  • Constructor Details

    • ColorIndexer

      public ColorIndexer()
  • Method Details

    • main

      public static void main(String[] args)
    • convertToRgb24

      private PixelImage convertToRgb24(PixelImage in)
    • adjustColor

      private PixelImage adjustColor(PixelImage img)
    • scale

      private PixelImage scale(PixelImage in)
    • count

      private int[] count(PixelImage image)
    • store

      private void store(String name, int[] occ)
    • processFile

      public void processFile(String inputDirectory, String inputFileName, String outputDirectory)
      Description copied from class: BatchProcessorOperation
      Method to be called on each file given to this operation. Non-abstract heirs of this class must implement this method to add functionality.
      Specified by:
      processFile in class BatchProcessorOperation
      Parameters:
      inputDirectory - name of directory where the file to be processed resides
      inputFileName - name of file to be processed
      outputDirectory - output directory for that file, need not necessarily be used