This repository implements the "Image Statistics" tool that was available in CornerstoneTools v2, but removed in v3. It demonstrates how to implement the tool using version 3's "plugins".
This repository also serves as a very basic example and template for creating a listing on the Cornerstone.js Market.
You can play with this tool using the live example: here
Nothing crazy here. This tool is a class that extends cornerstone-tool
's "BaseTool". It can be installed, added, and extended the same way as all 3rd party tools.
Install via NPM:
npm install @qsolutionsllc/cornerstone-tool-image-statistics --save
Import, add, and enable:
import ImageStatisticsTool from "@qsolutionsllc/cornerstone-tool-image-statistics";
// ...
cornerstoneTools.addTool(ImageStatisticsTool);
cornerstoneTools.setToolEnabled("ImageStatistics");
This code is for educational purposes. If you feel it could be improved or made clearer to assist in:
- Providing an example "Custom Tool" for Cornerstone Tools v3+
- Providing an example Cornerstone.js Market free listing
Please do not hesitate to create an issue or a pull request with your questions, comments, enhancements, concerns, etc.
Looking to contribute? Look for the Good First Issue label.
Please file an issue for bugs, missing documentation, or unexpected behavior.
Please file an issue to suggest new features. Vote on feature requests by adding a 👍. This helps maintainers prioritize what to work on.
For the time being, please feel free to open an issue. We'll provide a better avenue for communication moving forward ^_^
Thanks goes to these wonderful people (emoji key):
Danny Brown 💻 |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!