{"id":23853650,"url":"https://github.com/pei-mao/cuda-erodeanddilate","last_synced_at":"2025-07-25T15:13:09.517Z","repository":{"id":247707997,"uuid":"826630648","full_name":"Pei-mao/Cuda-ErodeAndDilate","owner":"Pei-mao","description":"This is a small implementation example of image processing using CUDA technology, demonstrating basic operation methods.","archived":false,"fork":false,"pushed_at":"2024-07-18T02:55:49.000Z","size":654,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-02T23:19:37.158Z","etag":null,"topics":["cuda-programming","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pei-mao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-07-10T04:44:59.000Z","updated_at":"2024-10-07T08:32:23.000Z","dependencies_parsed_at":"2024-07-18T05:33:58.936Z","dependency_job_id":null,"html_url":"https://github.com/Pei-mao/Cuda-ErodeAndDilate","commit_stats":null,"previous_names":["pei-mao/cuda-erodeanddilate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pei-mao%2FCuda-ErodeAndDilate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pei-mao%2FCuda-ErodeAndDilate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pei-mao%2FCuda-ErodeAndDilate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pei-mao%2FCuda-ErodeAndDilate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pei-mao","download_url":"https://codeload.github.com/Pei-mao/Cuda-ErodeAndDilate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240142763,"owners_count":19754633,"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":["cuda-programming","image-processing"],"created_at":"2025-01-02T23:18:41.643Z","updated_at":"2025-02-22T07:47:08.472Z","avatar_url":"https://github.com/Pei-mao.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cuda-ErodeAndDilate\nA small implementation of image processing operations (erosion and dilation) using CUDA for parallel computation.\n\n| Raw Image | Erosion Image | Dilation Image |\n|:---------:|:-------------:|:--------------:|\n| ![Raw Image](images/finger.jpg) | ![Erosion Image](images/Erosion.jpg) | ![Dilation Image](images/Dilation.jpg) |\n\n## Process\n\n1. **Read the image**: Read the image from the specified path and convert it to grayscale.\n2. **Allocate memory**: Allocate memory on the GPU to store the input and output image data.\n3. **Set CUDA kernel parameters**: Define the number of threads per block and calculate the number of blocks needed.\n4. **Execute CUDA kernel**: Execute the CUDA kernels for erosion and dilation operations.\n5. **Retrieve results**: Copy the computed results from the GPU back to the CPU and save the resulting images to the specified path.\n6. **Perform operations using OpenCV**: Perform erosion and dilation operations using OpenCV's `erode` and `dilate` functions, and save the results.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpei-mao%2Fcuda-erodeanddilate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpei-mao%2Fcuda-erodeanddilate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpei-mao%2Fcuda-erodeanddilate/lists"}