{"id":16519100,"url":"https://github.com/peter-t-ruehr/stack_cropping","last_synced_at":"2025-08-21T17:14:20.619Z","repository":{"id":159300597,"uuid":"362474564","full_name":"Peter-T-Ruehr/stack_cropping","owner":"Peter-T-Ruehr","description":"ImageJ/Fiji macro that crops any given image stack without having to load it into memory first.","archived":false,"fork":false,"pushed_at":"2023-07-18T11:41:04.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T09:12:12.248Z","etag":null,"topics":["biology","conversion","cropping-images","fiji","histology","image-macro","image-stacks","imagej","material-science","micro-ct","mri","tomography"],"latest_commit_sha":null,"homepage":"https://royalsocietypublishing.org/doi/10.1098/rspb.2021.0616","language":"ImageJ Macro","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Peter-T-Ruehr.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,"governance":null}},"created_at":"2021-04-28T13:19:26.000Z","updated_at":"2023-07-18T09:04:46.000Z","dependencies_parsed_at":"2023-06-11T21:00:23.194Z","dependency_job_id":"5bb97111-b947-4b2f-9840-f785fe65e971","html_url":"https://github.com/Peter-T-Ruehr/stack_cropping","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter-T-Ruehr%2Fstack_cropping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter-T-Ruehr%2Fstack_cropping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter-T-Ruehr%2Fstack_cropping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter-T-Ruehr%2Fstack_cropping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Peter-T-Ruehr","download_url":"https://codeload.github.com/Peter-T-Ruehr/stack_cropping/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241578037,"owners_count":19985094,"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":["biology","conversion","cropping-images","fiji","histology","image-macro","image-stacks","imagej","material-science","micro-ct","mri","tomography"],"created_at":"2024-10-11T16:45:10.921Z","updated_at":"2025-03-02T22:20:33.726Z","avatar_url":"https://github.com/Peter-T-Ruehr.png","language":"ImageJ Macro","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stack cropping and rotation macro for Imagej/Fiji\n\n**Imagej [1] / Fiji [2] macro that crops any given image stack without the need of loading it into memory first.**\n\n### Features\n * Region of interest (ROI) definition in image stack of any size\n * Original stack on which the ROI is defined is loaded rapidly as a virtual stack without clocking up memory \n * user defined rotation of the ROI around the z-axis of the stack\n * creation of log file with ROI-coordinates and rotation angle for reproducible results\n * optional contrast enhancement\n * Should run on Linux, Win \u0026 iOS.\n\n### Usage\n  * either drag and drop the \\*.ijm- file into the Fiji main window and click \"Run\" or press Ctrl+R on your keyboard\n  * or store a copy of the \\*.ijm- file in the \"Macros\" folder (./Fiji.app/plugins/Macros). If the file name ends with an underscore (e.g. stack_cropping_.ijm), the macro will be available from the Fiji menu at \"Plugins \u003e Macros \u003e stack cropping\" after the next restart of Fiji.\n\n### Citation\nPlease cite the following paper when you use this macro:\n\nRühr et al. (**2021**): Juvenile ecology drives adult morphology in two insect orders. *Proceedings of the Royal Society B* **288*: 20210616. https://doi.org/10.1098/rspb.2021.0616\n\n### General and in-house (development) versions\nThere is a version for general use ([./stack_cropping_.ijm](https://github.com/Peter-T-Ruehr/stack_cropping/blob/main/stack_cropping_.ijm)) and two development-versions of the cropping script ([./IEZ/ROI_cropping_devel_1_.ijm](https://github.com/Peter-T-Ruehr/stack_cropping/blob/main/IEZ/ROI_cropping_devel_1_.ijm), [./IEZ/ROI_cropping_devel_2_.ijm](https://github.com/Peter-T-Ruehr/stack_cropping/blob/main/IEZ/ROI_cropping_devel_2_.ijm)). The latter two automatically detect scan details (e.g., pixel size) from (SR)µCT-scans and their log-files of the following sources:\n  * TOPOTOMO beamline of KIT Light Source (aka ANKA) at the Karlsruher Institut für Technologie (KIT) (from different file structures of different scan times)\n  * p05 beamline run by Helmholtz-Zentrum hereon at DESY, Germany (from different file structures of different scan times)\n  * TOMCAT beamline at Swiss Light Source (SLS), PSI, Switzerland\n  * Pheoneix naotome run by Helmholtz-Zentrum hereon at Deutsches Elektronen Synchrotron (DESY), Germany\n  * Bruker Skyscan 1272 run by Institute of Evolutionary Biology (IEZ), Germany\n\nNote that files and folder strcutures may have changed over the years, so the development scripts will not work for all scans taken at the listed sources. The development scripts are mainly designed for in-house use and will be updated according to in-house needs. [Issues](https://github.com/Peter-T-Ruehr/stack_cropping/issues) regarding the general script, however, will be answered asap.\n\n### References\n[1] Schneider, C. A., Rasband, W. S., \u0026 Eliceiri, K. W. (2012). NIH Image to ImageJ: 25 years of image analysis. Nature Methods, 9, 671–675. (doi: 10.1038/nmeth.2089)\n\n[2] Schindelin J et al. 2012 Fiji: an open-source platform for biological-image analysis. Nat. Methods 9, 676–682. (doi: 10.1038/nmeth.2019)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter-t-ruehr%2Fstack_cropping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeter-t-ruehr%2Fstack_cropping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter-t-ruehr%2Fstack_cropping/lists"}