Awesome
<div align="center"> <h1>Cornerstone Tools Plugin: Image Statistics</h1> <a href="https://www.emojione.com/emoji/1f4ca"> <img height="80" width="80" alt="bar chart (emoji)" src="https://raw.githubusercontent.com/QSolutionsLLC/cornerstone-tool-image-statistics/master/other/bar_chart.png" /> </a> <p>A <i>very</i> simple statistics tool plugin for <a href="https://github.com/cornerstonejs/cornerstone">CornerstoneJS</a></p> </div> <hr /> <!-- prettier-ignore-start --> <!-- TODO: Coverage --> <!-- prettier-ignore-end -->Image Statistics
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.
Demo
You can play with this tool using the live example: here
Usage
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");
Contributing
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.
Resources
Issues
Looking to contribute? Look for the Good First Issue label.
🐛 Bugs
Please file an issue for bugs, missing documentation, or unexpected behavior.
💡 Feature Requests
Please file an issue to suggest new features. Vote on feature requests by adding a 👍. This helps maintainers prioritize what to work on.
❓ Questions
For the time being, please feel free to open an issue. We'll provide a better avenue for communication moving forward ^_^
Contributors
Thanks goes to these wonderful people (emoji key):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore --><img src="https://avatars1.githubusercontent.com/u/5797588?v=4" width="100px;"/><br /><sub><b>Danny Brown</b></sub><br />💻 |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!