{"id":24564665,"url":"https://github.com/pixelbend/heatmapsharp","last_synced_at":"2025-09-02T15:48:28.811Z","repository":{"id":190909289,"uuid":"683452407","full_name":"pixelbend/HeatmapSharp","owner":"pixelbend","description":"A dotnet based image heat mapping helper built on ImageSharp.","archived":false,"fork":false,"pushed_at":"2025-08-22T12:57:02.000Z","size":86,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-22T14:52:41.896Z","etag":null,"topics":["csharp","dotnet","dotnet-core","dotnetcore","heatmap","image-heatmap","image-processing"],"latest_commit_sha":null,"homepage":"","language":"C#","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/pixelbend.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-08-26T16:10:34.000Z","updated_at":"2025-08-22T12:57:06.000Z","dependencies_parsed_at":"2024-01-04T09:49:11.153Z","dependency_job_id":"acfa7e80-b2e1-449d-8741-dc7fcaa0c904","html_url":"https://github.com/pixelbend/HeatmapSharp","commit_stats":null,"previous_names":["arkamfahry/heatmapsharp","driftdev/heatmapsharp","codefrantic/heatmapsharp","pixelbend/heatmapsharp"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pixelbend/HeatmapSharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelbend%2FHeatmapSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelbend%2FHeatmapSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelbend%2FHeatmapSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelbend%2FHeatmapSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pixelbend","download_url":"https://codeload.github.com/pixelbend/HeatmapSharp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelbend%2FHeatmapSharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273309468,"owners_count":25082543,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["csharp","dotnet","dotnet-core","dotnetcore","heatmap","image-heatmap","image-processing"],"created_at":"2025-01-23T11:14:45.950Z","updated_at":"2025-09-02T15:48:28.755Z","avatar_url":"https://github.com/pixelbend.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HeatmapSharp \n\nA dotnet based image heat mapping helper built on ImageSharp\n\n- Not as good as any python implementation built with matplotlib and numpy\n- This doesn't have any smart mapping features because i am not an image processing expert. The only way to get reliable smart mapping features is to use python libraries in dotnet using [Python.NET](https://github.com/pythonnet/pythonnet). Which means the runtime is dependent on python and it can break dotnet docker builds. So python in dotnet is a no go.\n- The basic mapping is done if a set of points are given and the image is inputted.\n- External dependency\n  -  [ImageSharp](https://github.com/SixLabors/ImageSharp).\n\n\n## Features\n- Map a heatmap to an Image when the image and the points are given.\n\n## Progress\n- [x] Basic image heat mapping.\n- [x] Retrieve color maps from asset images.\n\n## Usage\n\n- Import the image mapper\n```c#\nusing HeatmapSharp.ImageMapper;\n```\n\n- Create a instance of HeatMapper\n```c#\n/* \nHeatMapper is configurable with \nHeatMapper(int pointDiameter, float pointStrength, float opacity, string colors) \n*/\n\n/* \npointDiameter is an integer of the the diameter of the marking point\ndefault pointDiameter = 50 which is 50px (1 = 1px)\n*/\n\n/* \npointStrength is an float from 0-1 marks the strength or opacity of the point\ndefault pointOpacity 0.2f\n*/\n\n/* \nopacity is an float from 0-1 is the opacity of the heatmap overlay on the original image\ndefault opacity 0.65f\n*/\n\n/* \ncolors is the heatmap color format used to color the heatmap\nthere are two formats \"default\" and \"reveal\"\nif not set explicitly it will be \"default\"\n- \"default\" is a jet style rainbow color map\n- \"reveal\" is a dark and light style color map  \n*/\n\nHeatMapper heatMapper = new HeatMapper(50, 0.2f, 0.65f, \"default\");\n```\n\n- Use the ImageToHeatMap method to heatmap an image\n```c#\n// pass the image and the points to ImageToHeatMap(image, points)\n// image is a Image\u003cRgba32\u003e type image from ImageSharp\n// points are an IEnumerable\u003cPointModel\u003e of points\n\nImage\u003cRgba32\u003e heatmap = heatMapper.ImageToHeatMap();\n```\n\n## Change Log\n\n- v0.0.1\n  - Dependency Update \n    - used ImageSharp v3.0.1\n\n- v0.0.2\n  - Dependency Update \n    - ImageSharp update to v3.0.2\n  - Bug Fix\n    - Fixed issue where if a point goes out of bound in an image it raises a exception. Fixed it to omit the point that goes out of bound in the mapping process \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelbend%2Fheatmapsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixelbend%2Fheatmapsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelbend%2Fheatmapsharp/lists"}