Skip to content

Latest commit

 

History

History
133 lines (87 loc) · 6.05 KB

File metadata and controls

133 lines (87 loc) · 6.05 KB

Cornerstone Tools Plugin: Image Statistics

bar chart (emoji)

A very simple statistics tool plugin for CornerstoneJS


npm version CircleCI All Contributors PRs Welcome Code of Conduct

Watch on GitHub Star on GitHub Tweet

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

GIF Example

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:

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.

See Bugs

💡 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.

See Feature Requests

❓ 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):


Danny Brown

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT