Class Selection

java.lang.Object
org.mycore.iview.tests.image.api.Selection
Direct Known Subclasses:
FilterSelection

public abstract class Selection extends Object
  • Constructor Details

    • Selection

      public Selection()
  • Method Details

    • getPixel

      public abstract List<Pixel> getPixel()
      Returns:
      a List of all Pixel wich contains this selection
    • getPositionPixelMap

      public Map<Position,Pixel> getPositionPixelMap()
      Returns:
      returns a hashmap wich contains the position as key and the pixel as value
    • fromBufferedImage

      public static Selection fromBufferedImage(BufferedImage bufferedImage)
      Creates a selection of all Pixel of a Buffered image
      Parameters:
      bufferedImage - the buffered image from wich the selection should be created
      Returns:
      the selection
    • getUpperLeft

      public Position getUpperLeft()
    • getLowerRight

      public Position getLowerRight()
    • toBufferedImage

      public BufferedImage toBufferedImage()