Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sfgrp/sled

Package Overview
Dependencies
Maintainers
0
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sfgrp/sled

UI for image segmentation of slide collections

  • 1.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

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

Keywords

FAQs

Package last updated on 14 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc