Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
cornerstonetools-thresholdbrush
Advanced tools
A brush tool that allows you to set a low and high threshold range in HU units while drawing segmentations.
A threshold brush that draws pixels only within the specified threshold low and high range.
Notice how it only draws on the bone which is in a threshold range of 200 to 100. and If I attempt to draw on other pixels outside of that range, nothing gets drawn.
$ npm i cornerstonetools-thresholdbrush
import ThresholdBrush from "cornerstonetools-thresholdbrush";
cornerstoneTools.addToolForElement(element, ThresholdBrush, {configuration: {thresholdLow: 200 , thresholdHigh: 1000}});
cornerstoneTools.setToolActive("ThresholdBrush", { mouseButtonMask: 1 });
You can modify the threshold low an threshold high configuration on the fly like the following
let brushThreshold = cornerstoneTools.store.state.tools.filter(tool => tool.name == 'ThresholdBrush')[0].configuration
brushThreshold.thresholdLow = -29
brushThreshold.thresholdHigh = 150
MIT
FAQs
A brush tool that allows you to set a low and high threshold range in HU units while drawing segmentations.
The npm package cornerstonetools-thresholdbrush receives a total of 0 weekly downloads. As such, cornerstonetools-thresholdbrush popularity was classified as not popular.
We found that cornerstonetools-thresholdbrush demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.