{"id":25432314,"url":"https://github.com/lin775533/canny_processor_pthread","last_synced_at":"2025-06-13T10:09:25.994Z","repository":{"id":275496254,"uuid":"926246281","full_name":"Lin775533/canny_processor_Pthread","owner":"Lin775533","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-02T22:05:24.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T10:06:08.592Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Lin775533.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":"2025-02-02T22:03:20.000Z","updated_at":"2025-02-02T22:05:27.000Z","dependencies_parsed_at":"2025-02-02T23:28:16.043Z","dependency_job_id":null,"html_url":"https://github.com/Lin775533/canny_processor_Pthread","commit_stats":null,"previous_names":["lin775533/canny_processor_pthread"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lin775533/canny_processor_Pthread","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lin775533%2Fcanny_processor_Pthread","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lin775533%2Fcanny_processor_Pthread/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lin775533%2Fcanny_processor_Pthread/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lin775533%2Fcanny_processor_Pthread/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lin775533","download_url":"https://codeload.github.com/Lin775533/canny_processor_Pthread/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lin775533%2Fcanny_processor_Pthread/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259624720,"owners_count":22886328,"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":[],"created_at":"2025-02-17T04:49:50.870Z","updated_at":"2025-06-13T10:09:25.966Z","avatar_url":"https://github.com/Lin775533.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gaussian Blur Parallelization in Canny Edge Detection\n\nThis project demonstrates parallel implementations of the Gaussian blur operation using OpenMP and Pthreads. Both versions optimize the horizontal (`blur_x`) and vertical (`blur_y`) blur operations in the Canny edge detection algorithm.\n\n\n### Performance Results\n\n* Initial `blur_x` parallelization achieved a 16.3% improvement in processing time\n* Additional `blur_y` optimization resulted in a 10.3% performance increase\n* Total execution time was reduced from 0.836s to 0.750s\n\n## Pthread Implementation\n\n### Overview\n\nThe Pthread version implements custom thread management for fine-grained control over parallel processing. It utilizes a structured approach for data sharing and workload distribution across threads.\n\n### Implementation Details\n\n```c\n#define N_T 4  // Number of threads\n\nstruct thread_args {\n    // Thread parameters structure\n    unsigned char *image;\n    int rows, cols, start, end, center;\n    // Additional parameters\n};\n```\n\n### Performance Results\n\n* Initial `blur_x` parallelization showed a 15.2% improvement\n* Additional `blur_y` optimization achieved an impressive 87.8% improvement\n* Total execution time was reduced from 0.847s to 0.103s\n\n## Performance Considerations\n\nWhile both implementations demonstrate significant improvements in static image processing, performance characteristics may vary with real-time camera input due to several factors:\n\n* I/O bottlenecks and memory operation overhead\n* Frame synchronization requirements\n* Data transfer constraints between CPU and memory\n* System resource availability and concurrent processes\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flin775533%2Fcanny_processor_pthread","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flin775533%2Fcanny_processor_pthread","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flin775533%2Fcanny_processor_pthread/lists"}