Class BlackWhite


  • public class BlackWhite
    extends java.lang.Object

    Überschrift: BlackWhite.

    Beschreibung: Erkennt weisse und schwarze Flächen in einem Bild.

    Copyright: Copyright (c) ELO Digital Office GmbH 2018

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static BlackWhite threshold97
      Mindestens 97% der Pixel sind Weiss/Schwarz (3% Schmutz).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isBlack​(java.awt.image.Raster tile)
      Meldet zurück, ob es sich um ein schwarzes Bild handelt.
      boolean isWhite​(java.awt.image.Raster tile)
      Meldet zurück, ob es sich um ein weißes Bild handelt.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • threshold97

        public static BlackWhite threshold97
        Mindestens 97% der Pixel sind Weiss/Schwarz (3% Schmutz).
    • Method Detail

      • isWhite

        public boolean isWhite​(java.awt.image.Raster tile)
        Meldet zurück, ob es sich um ein weißes Bild handelt.
        Parameters:
        tile - Raster
        Returns:
        Weißes Bild
      • isBlack

        public boolean isBlack​(java.awt.image.Raster tile)
        Meldet zurück, ob es sich um ein schwarzes Bild handelt.
        Parameters:
        tile - Raster
        Returns:
        Schwarzes Bild