{"id":13634555,"url":"https://github.com/QSolutionsLLC/cornerstone-tool-image-statistics","last_synced_at":"2025-04-18T23:32:19.617Z","repository":{"id":57138548,"uuid":"162630190","full_name":"QSolutionsLLC/cornerstone-tool-image-statistics","owner":"QSolutionsLLC","description":"⚕️📊 A simple overlay tool that adds debugging information over the canvas #CornerstoneJS","archived":false,"fork":false,"pushed_at":"2019-01-03T21:01:49.000Z","size":20020,"stargazers_count":14,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-30T15:39:08.326Z","etag":null,"topics":["cornerstone","cornerstonejs","cornerstonejs-market","medical-imaging","plugin","tool"],"latest_commit_sha":null,"homepage":"https://qsolutionsllc.github.io/cornerstone-tool-image-statistics/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QSolutionsLLC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-20T20:52:50.000Z","updated_at":"2024-01-31T02:52:00.000Z","dependencies_parsed_at":"2022-09-03T14:42:53.789Z","dependency_job_id":null,"html_url":"https://github.com/QSolutionsLLC/cornerstone-tool-image-statistics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QSolutionsLLC%2Fcornerstone-tool-image-statistics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QSolutionsLLC%2Fcornerstone-tool-image-statistics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QSolutionsLLC%2Fcornerstone-tool-image-statistics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QSolutionsLLC%2Fcornerstone-tool-image-statistics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QSolutionsLLC","download_url":"https://codeload.github.com/QSolutionsLLC/cornerstone-tool-image-statistics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223783118,"owners_count":17201903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cornerstone","cornerstonejs","cornerstonejs-market","medical-imaging","plugin","tool"],"created_at":"2024-08-02T00:00:25.803Z","updated_at":"2024-11-09T04:30:46.989Z","avatar_url":"https://github.com/QSolutionsLLC.png","language":"HTML","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003eCornerstone Tools Plugin: Image Statistics\u003c/h1\u003e\n\n\u003ca href=\"https://www.emojione.com/emoji/1f4ca\"\u003e\n\u003cimg height=\"80\" width=\"80\" alt=\"bar chart (emoji)\" src=\"https://raw.githubusercontent.com/QSolutionsLLC/cornerstone-tool-image-statistics/master/other/bar_chart.png\" /\u003e\n\u003c/a\u003e\n\n\u003cp\u003eA \u003ci\u003every\u003c/i\u003e simple statistics tool plugin for \u003ca href=\"https://github.com/cornerstonejs/cornerstone\"\u003eCornerstoneJS\u003c/a\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n\u003chr /\u003e\n\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- TODO: Coverage --\u003e\n[![npm version](https://badge.fury.io/js/%40qsolutionsllc%2Fcornerstone-tool-image-statistics.svg)](https://badge.fury.io/js/%40qsolutionsllc%2Fcornerstone-tool-image-statistics)\n[![CircleCI](https://circleci.com/gh/QSolutionsLLC/cornerstone-tool-image-statistics.svg?style=svg)](https://circleci.com/gh/QSolutionsLLC/cornerstone-tool-image-statistics)\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors)\n[![PRs Welcome][prs-badge]][prs] [![Code of Conduct][coc-badge]][coc]\n\n[![Watch on GitHub][github-watch-badge]][github-watch]\n[![Star on GitHub][github-star-badge]][github-star]\n[![Tweet][twitter-badge]][twitter]\n\u003c!-- prettier-ignore-end --\u003e\n\n## Image Statistics\n\nThis repository implements the [\"Image Statistics\"](https://github.com/cornerstonejs/cornerstoneTools/blob/317e8fa4925b018dee76ec0dbf1e452c1ef93cd0/src/imageTools/imageStats.js) tool that was available in CornerstoneTools v2, but removed in v3. It demonstrates how to implement the tool using version 3's [\"plugins\"](https://tools.cornerstonejs.org/custom-tools/).\n\nThis repository also serves as a very basic example and template for creating a listing on the [Cornerstone.js Market](https://cornerstonejsmarket.io).\n\n### Demo\n\n![GIF Example](https://github.com/QSolutionsLLC/cornerstone-tool-image-statistics/raw/gh-page/example/example.gif)\n\nYou can play with this tool using the [live example: here](https://qsolutionsllc.github.io/cornerstone-tool-image-statistics/)\n\n### Usage\n\nNothing crazy here. This tool is a class that extends `cornerstone-tool`'s [\"BaseTool\"](https://tools.cornerstonejs.org/tool-types/#base-tool). It can be installed, added, and extended the same way as all 3rd party tools.\n\n_Install via NPM:_\n\n`npm install @qsolutionsllc/cornerstone-tool-image-statistics --save`\n\n_Import, add, and enable:_\n\n```js\nimport ImageStatisticsTool from \"@qsolutionsllc/cornerstone-tool-image-statistics\";\n\n// ...\n\ncornerstoneTools.addTool(ImageStatisticsTool);\ncornerstoneTools.setToolEnabled(\"ImageStatistics\");\n```\n\n## Contributing\n\nThis code is for educational purposes. If you feel it could be improved or made clearer to assist in:\n\n- Providing an example [\"Custom Tool\"](https://tools.cornerstonejs.org/custom-tools/) for Cornerstone Tools v3+\n- Providing an example [Cornerstone.js Market](https://cornerstonejsmarket.io) free listing\n\nPlease do not hesitate to [create an issue]() or a [pull request]() with your questions, comments, enhancements, concerns, etc.\n\n## Resources\n\n- [Webpack: Authoring Libraries](https://webpack.js.org/guides/author-libraries/)\n- [Webpack: Externals](https://webpack.js.org/configuration/externals/)\n\n## Issues\n\n_Looking to contribute? Look for the [Good First Issue][good-first-issue]\nlabel._\n\n### 🐛 Bugs\n\nPlease file an issue for bugs, missing documentation, or unexpected behavior.\n\n[**See Bugs**][bugs]\n\n### 💡 Feature Requests\n\nPlease file an issue to suggest new features. Vote on feature requests by adding\na 👍. This helps maintainers prioritize what to work on.\n\n[**See Feature Requests**][requests]\n\n### ❓ Questions\n\nFor the time being, please feel free to open an issue. We'll provide a better\navenue for communication moving forward ^\\_^\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key][emojis]):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore --\u003e\n| [\u003cimg src=\"https://avatars1.githubusercontent.com/u/5797588?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eDanny Brown\u003c/b\u003e\u003c/sub\u003e](http://dannyrb.com/)\u003cbr /\u003e[💻](https://github.com/QSolutionsLLC/cornerstone-tool-image-statistics/commits?author=dannyrb \"Code\") |\n| :---: |\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors][all-contributors] specification.\nContributions of any kind welcome!\n\n## License\n\n[MIT](https://github.com/QSolutionsLLC/cornerstone-tool-image-statistics/blob/master/LICENSE)\n\n\u003c!--\nLinks:\n--\u003e\n\n\u003c!-- prettier-ignore-start --\u003e\n\n[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: http://makeapullrequest.com\n[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square\n[coc]: https://github.com/QSolutionsLLC/cornerstone-tool-image-statistics/blob/master/CODE_OF_CONDUCT.md\n[github-watch-badge]: https://img.shields.io/github/watchers/QSolutionsLLC/cornerstone-tool-image-statistics.svg?style=social\n[github-watch]: https://github.com/QSolutionsLLC/cornerstone-tool-image-statistics/watchers\n[github-star-badge]: https://img.shields.io/github/stars/QSolutionsLLC/cornerstone-tool-image-statistics.svg?style=social\n[github-star]: https://github.com/QSolutionsLLC/cornerstone-tool-image-statistics/stargazers\n[emojis]: https://github.com/kentcdodds/all-contributors#emoji-key\n[all-contributors]: https://github.com/kentcdodds/all-contributors\n[twitter]: https://twitter.com/intent/tweet?text=Check%20out%20cornerstonejs-marketplace%20by%20%40dannyrb%20https%3A%2F%2Fgithub.com%2Fdannyrb%2Fcornerstonejs-marketplace%20%F0%9F%91%8D\n[twitter-badge]: https://img.shields.io/twitter/url/https/github.com/QSolutionsLLC/cornerstone-tool-image-statistics.svg?style=social\n[bugs]: https://github.com/QSolutionsLLC/cornerstone-tool-image-statistics/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Acreated-desc\n[requests]: https://github.com/QSolutionsLLC/cornerstone-tool-image-statistics/issues?q=is%3Aissue+sort%3Areactions-%2B1-desc+label%3Aenhancement+is%3Aopen\n[good-first-issue]: https://github.com/QSolutionsLLC/cornerstone-tool-image-statistics/issues?utf8=✓\u0026q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3A\"good+first+issue\"+\n\n\u003c!-- prettier-ignore-end --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FQSolutionsLLC%2Fcornerstone-tool-image-statistics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FQSolutionsLLC%2Fcornerstone-tool-image-statistics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FQSolutionsLLC%2Fcornerstone-tool-image-statistics/lists"}