Sled is a UI for grid-based user-driven image segmentation. Applications in processing of natural history specimen collections.
npm install
npm run dev
Navigate to http://localhost:8080/
in your browser.
With NPM
npm install @sfg/sled
import SledComponent from '@sfg/sled'
export default {
components: {
SledComponent
}
}
<sled-component
:vertical-lines="vlines"
:horizontal-lines="hlines"
:image-width="width"
:image-height="height"
:line-weight="lineWeight"
:scale="scaleForScreen"
:file-image="fileImage"
@onComputeCells="saveCells"
/>
Event is triggered each time when horizontal and vertical lines are added and computed to create the cells. Contains information of computed cells.
{
"index": 2,
"upperCorner": { "x": 3689.25, "y": 0 },
"lowerCorner": { "x": 4919, "y": 1700.75 },
"row": 0,
"column": 2
}
Also tracks a metadata label.
{
"metadata": 'some label',
}
Type: String
Required: false
Default: ''
Type: Number
Required: true
Type: Number
Required: true
Type: Array
Required: false
Default: []
Type: Array
Required: false
Default: []
Type: Number
Required: false
Default: 4
Type: Number
Required: false
Default: 1