Class PixelMap
PixelMap class
Holds the binaray pixel bitmap
Constructors
Properties
Name | Description |
---|
Size { get; } | The size of map |
Methods
Name | Description |
---|
At(int, int) | The value at given coordinates |
Copy() | |
FindNext(Point2I, ref Point2I) | Searches a x and a y such that source[x,y] = 1 and source[x+1,y] 0. If this not exists, false will be returned else the result is true. |
FindPath(TurnPolicy, Point2I) | Compute a path in the binary matrix. Start path at the point (x0,x1), which must be an upper left corner of the path. Also compute the area enclosed by the path. Return a new Path object, or NULL on error (note that a legitimate path cannot have length 0). |
Flip(int, int) | Flips one point |
Index(int) | Gets one point |
Majority(int, int) | The Majority function |
XorPath(TracePath) | XOR the path |
Fields
See Also