Skip to content

Generate JSON represented bitmasks from image selections for machine learning applications.

License

Notifications You must be signed in to change notification settings

lukeknowles/bitmask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bitmask

Generate JSON representations of bitmasks from image selections for machine learning applications.

DEMO

This uses Bootstrap, jQuery, and fabric.js

Bitmask in use

Data Output

Bitmask outputs a JSON string representing the area selection of an image. All the arrays are 0-based (e.g an image which is 300px in height will be represented as a multidimensional array of length 299, assuming one of the [y,x] output formats are selected in the options menu.)

Formats
Format Description
Pixel Coordinate Array [y,x] A representation of the selected area in which x coordinates are contained within an array who's index corresponds to a y coordinate.
Pixel Coordinate Array [x,y] A representation of the selected area in which y coordinates are contained within an array who's index corresponds to an x coordinate.
Bitmask Array [y,x] A representation of the selected area in which x coordinates are contained within an array who's index corresponds to a y coordinate. Selected pixels are represented by a 1, while the rest are represented by a 0.
Bitmask Array [x,y] A representation of the selected area in which y coordinates are contained within an array who's index corresponds to a x coordinate. Selected pixels are represented by a 1, while the rest are represented by a 0.

About

Generate JSON represented bitmasks from image selections for machine learning applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages