Class MemoryCoOccurrenceMatrix

  • All Implemented Interfaces:
    CoOccurrenceMatrix

    public class MemoryCoOccurrenceMatrix
    extends Object
    implements CoOccurrenceMatrix
    This class stores a co-occurrence matrix, a two-dimensional array of int counters. The dimension is given to the constructor which allocates a corresponding array.

    Caveat

    Does not (realistically) work with 16 bit channels because it allocates dimension times dimension int values, resulting in an attempt to allocate 16 GB with 16 bit images (dimension=65,536). TODO: Implement more sophisticated class, creating counters on-demand.
    Author:
    Marco Schmidt