Package org.apache.commons.imaging.palette

## Class MedianCutQuantizer

- java.lang.Object
- - org.apache.commons.imaging.palette.MedianCutQuantizer

-     public class MedianCutQuantizer
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `MedianCutQuantizer​(boolean ignoreAlpha)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Map<Integer,​org.apache.commons.imaging.palette.ColorCount>` | `groupColors​(BufferedImage image, int maxColors)` |
    `Palette` | `process​(BufferedImage image, int maxColors, MedianCut medianCut)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MedianCutQuantizer

          public MedianCutQuantizer​(boolean ignoreAlpha)

  - ### Method Detail

    - #### groupColors

          public Map<Integer,​org.apache.commons.imaging.palette.ColorCount> groupColors​(BufferedImage image,
                                                                                              int maxColors)

    - #### process

          public Palette process​(BufferedImage image,
                                 int maxColors,
                                 MedianCut medianCut)
                          throws ImageWriteException

      Throws:
        `ImageWriteException`