{"id":19220460,"url":"https://github.com/timgoll/matlab_image_crop","last_synced_at":"2026-02-26T23:34:08.078Z","repository":{"id":123885872,"uuid":"153760507","full_name":"TimGoll/matlab_image_crop","owner":"TimGoll","description":"extracts four-point-image out of any given image array and rescales it to a defined resolution","archived":false,"fork":false,"pushed_at":"2018-10-19T10:25:46.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T09:23:29.241Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Matlab","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/TimGoll.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":"2018-10-19T09:41:03.000Z","updated_at":"2018-10-19T10:25:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"1b25130f-c0e5-4764-91d9-a193d35d75c2","html_url":"https://github.com/TimGoll/matlab_image_crop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TimGoll/matlab_image_crop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimGoll%2Fmatlab_image_crop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimGoll%2Fmatlab_image_crop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimGoll%2Fmatlab_image_crop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimGoll%2Fmatlab_image_crop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimGoll","download_url":"https://codeload.github.com/TimGoll/matlab_image_crop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimGoll%2Fmatlab_image_crop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29877040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T22:37:10.609Z","status":"ssl_error","status_checked_at":"2026-02-26T22:37:09.019Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-09T14:35:14.175Z","updated_at":"2026-02-26T23:34:08.061Z","avatar_url":"https://github.com/TimGoll.png","language":"Matlab","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Matlab Image Crop \u0026 Rescale\nThis extracts any four-point-image out of any given input image array and rescales it to a defined resolution.\n\n## Syntax\n```matlab\nimg_out = crop_image(img_in, coordinates_x, coordinates_y, resolution)\n```\n\n`img_in`: any single color image array, if you plan on using an rgb image, you have to pass the image three times through this function.\u003cbr\u003e\n`coordinates_x`: x edge coordinates of the four point shape defining the edge of the new image. \u003cbr\u003e\n`coordinates_y`: y edge coordinates of the four point shape defining the edge of the new image.\u003cbr\u003e\n`resolution`: resolution of the new image\n\n## Example\n\n```matlab\nimg = imread('path/to/image.png');\n\nimg_cut_red = crop_image(img(:,:,1), [66, 2468, 2479, 70], [90, 100, 1436, 1460], [1920, 1080]);\nimg_cut_green = crop_image(img(:,:,2), [66, 2468, 2479, 70], [90, 100, 1436, 1460], [1920, 1080]);\nimg_cut_blue = crop_image(img(:,:,3), [66, 2468, 2479, 70], [90, 100, 1436, 1460], [1920, 1080]);\n```\n\n## Edge point order\nHere's a small example of the edge points\n```\n   [x1, y1]\n      +----------_______     [x2, y2]\n      /                 --------+\n     |                           \\\n    /                             \\\n   +------_________                \\\n [x4, y4]          -----------------+\n                                 [x3, y3]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimgoll%2Fmatlab_image_crop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimgoll%2Fmatlab_image_crop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimgoll%2Fmatlab_image_crop/lists"}