1.0.3 • Published 3 years ago

@sfgrp/sled v1.0.3

Weekly downloads
34
License
NCSA
Repository
github
Last release
3 years ago

SLED

Sled is a UI for grid-based user-driven image segmentation. Applications in processing of natural history specimen collections.

Running locally

npm install

npm run serve

Navigate to http://localhost:8080/ in your browser.

Installation

With NPM

npm install @sfg/sled

For Vue.js 3

Import component

import SledComponent from '@sfg/sled'

export default {
  components: {
    SledComponent
  }
}

Typical use

<sled-component
  :vertical-lines="vlines"
  :horizontal-lines="hlines"
  :image-width="width"
  :image-height="height"
  :line-weight="lineWeight"
  :scale="scaleForScreen"
  :file-image="fileImage"
  @onComputeCells="saveCells"/>

Events

onComputedCells

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',
}

Props

fileImage

Type: String Required: false Default: ''

image-width

Type: Number Required: true

image-height

Type: Number Required: true

vertical-lines

Type: Array Required: false Default: []

horizontal-lines

Type: Array Required: false Default: []

line-weight

Type: Number Required: false Default: 4

scale

Type: Number Required: false Default: 1

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.5.4

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.4.9

4 years ago

0.5.0

4 years ago

0.4.8

4 years ago

0.4.7

4 years ago

0.4.6-b

4 years ago

0.4.5

4 years ago

0.4.6

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.3.9

4 years ago

0.4.0

4 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.2

4 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago