{"id":30108995,"url":"https://github.com/mathworks-teaching-resources/biosciences-image-processing","last_synced_at":"2025-08-10T03:20:27.857Z","repository":{"id":304666459,"uuid":"787578408","full_name":"MathWorks-Teaching-Resources/Biosciences-Image-Processing","owner":"MathWorks-Teaching-Resources","description":"This is an interactive courseware module for use in introductory biology classrooms. This module teaches the basics of image processing using biological images including an image of plants and images of blood smears as viewed under a microscope. It includes several live scripts.","archived":false,"fork":false,"pushed_at":"2025-07-25T17:06:26.000Z","size":7852,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"release","last_synced_at":"2025-07-25T23:54:02.968Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MathWorks-Teaching-Resources.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-16T19:41:00.000Z","updated_at":"2025-07-25T17:06:30.000Z","dependencies_parsed_at":"2025-07-25T19:06:16.541Z","dependency_job_id":null,"html_url":"https://github.com/MathWorks-Teaching-Resources/Biosciences-Image-Processing","commit_stats":null,"previous_names":["mathworks-teaching-resources/biosciences-image-processing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MathWorks-Teaching-Resources/Biosciences-Image-Processing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FBiosciences-Image-Processing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FBiosciences-Image-Processing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FBiosciences-Image-Processing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FBiosciences-Image-Processing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MathWorks-Teaching-Resources","download_url":"https://codeload.github.com/MathWorks-Teaching-Resources/Biosciences-Image-Processing/tar.gz/refs/heads/release","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FBiosciences-Image-Processing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269669977,"owners_count":24456777,"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-08-10T02:00:08.965Z","response_time":71,"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":[],"created_at":"2025-08-10T03:20:26.750Z","updated_at":"2025-08-10T03:20:27.848Z","avatar_url":"https://github.com/MathWorks-Teaching-Resources.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ca name=\"T_7D546F7B\"\u003e\u003c/a\u003e\n# \u003cspan style=\"color:rgb(213,80,0)\"\u003eBiological Sciences: Image Processing\u003c/span\u003e\n\n[![View Module on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/163701-biosciences-image-processing) or\n[![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/biosciences-Image-Processing\u0026file=S1_Introduction.mlx)\n\nIn this module, we will learn how to **import**, **preprocess**, and **segment biologically relevant images** using MATLAB®. Make sure you're familiar with the basics of using MATLAB by going through the [MATLAB Onramp](https://matlabacademy.mathworks.com/details/matlab-onramp/gettingstarted) before continuing. You'll need to utilize the [Image Processing Toolbox](https://www.mathworks.com/help/images/) for this module. You may want to consider going through the [Image Processing Onramp](https://matlabacademy.mathworks.com/details/image-processing-onramp/imageprocessing) for further practice. \n\n\u003ca name=\"beginToc\"\u003e\u003c/a\u003e\n## Table of Contents\n[Introduction](#H_6724101F)\n\n\u0026emsp;\u0026emsp;[Notes on the use of live scripts](#H_DECB8235)\n \n\u0026emsp;\u0026emsp;[Various icons will be used throughout these scripts to identify different types of interactivity.](#H_C793A640)\n \n[Scripts ](#H_8128A35F)\n \n\u003ca name=\"endToc\"\u003e\u003c/a\u003e\n\u003ca name=\"H_17F52C6E\"\u003e\u003c/a\u003e\n\u003cimg src=\"images/FluorescentCells.jpg\" width=\"35%\" alt=\"Stained cells in a cow blood vessel\"\u003e\n\nCells taken from the inner walls of a cow blood vessel, stained fluorescent, and viewed under a [microscope](https://commons.wikimedia.org/wiki/File:FluorescentCells.jpg). \n\n\u003ca name=\"H_6724101F\"\u003e\u003c/a\u003e\n# Introduction\n\nAs biologists, we study the living world and how the species that comprise it evolve, interact, and function. You can imagine many ways in which images might be useful in biology. Images of a species of animal or plant might be used to identify various features of those organisms. Image processing can be used to monitor the health of crops, to measure the movement of humans, and can be used with machine learning techniques to diagnose different conditions such as skin cancer. An iPhone will tell you what species of plant you're looking at if you take a photo of it. If you're walking in the woods, you can instantly know if you can eat a plant or should avoid touching it altogether! We'll start this module by exploring such a plant image. \n\n\nWithin organisms, we may want to look deeper than can be seen with the naked eye, which is enabled by the various types of microscopy currently used in the field. You can imagine using basic microscopy methods to look at the cells in a patient's blood, or even using more complicated microscopic imaging methods to look at the activity of cells in an alive mouse's brain! \n\n\nAs techniques in biology have gotten more and more complex, biologists have begun collecting more and more data. It can be challenging to analyze all of this data by hand, but luckily MATLAB can help! For example, imagine you collect a sample of a patient's blood, and you want to count the number of cells so you can figure out if the cell count is too low, too high, etc. People used to have to painstakingly count cells by hand, but now the process can be easily automated in MATLAB by importing and segmenting an image of the slide. We'll explore how to do this at the end of this module. \n\n\u003ca name=\"H_DECB8235\"\u003e\u003c/a\u003e\n## **Notes on the use of live scripts**\n-  These scripts can all be run independently, though we recommend going through these live scripts in order.  \n-  These live scripts are intended to be used with output inline. To change the output, go to the **View** tab of the toolstrip, and select \u003cimg src=\"images/outputinline.png\" width=\"19\" alt=\"image_1.png\"\u003e **Output Inline**.  \n-  If you haven't spent much time with live scripts, and need a refresher on interacting with them before you begin, click [here](matlab: edit starting_tips.mlx).  \n\u003ca name=\"H_C793A640\"\u003e\u003c/a\u003e\n### Various icons will be used throughout these scripts to identify different types of interactivity.\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; \u003cimg src=\"images/try.png\" width=\"19\" alt=\"Try icon\"\u003e Students to interact with the code . \n\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; \u003cimg src=\"images/exercise.png\" width=\"22\" alt=\"Exercise icon\"\u003e **Exercises** exist in most scripts and the answers will be provided at the end.  \n\n\nA problem set for students to practice these concepts is also included here. \n\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; \u003cimg src=\"images/reflect.png\" width=\"22\" alt=\"Reflect icon\"\u003e Students reflect on what they've learned or on what the data means. \n\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; \u003cimg src=\"images/app.png\" width=\"25\" alt=\"Application icon\"\u003e Particularly interesting examples of how these concepts are used in \"real-world\" biology\n\n\u003ca name=\"H_8128A35F\"\u003e\u003c/a\u003e\n# Scripts \n\u003ca name=\"H_FC8AD622\"\u003e\u003c/a\u003e\n## [Plant image segmentation](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/biosciences-Image-Processing\u0026file=S2_Plant_img_segmentation.mlx)\n-   ***Learning objective:*** Students will import,  manipulate, and segment a plant image in MATLAB, and learn how images are stored.  \n\u003ca name=\"H_E956AA02\"\u003e\u003c/a\u003e\n## [Cell counting](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/biosciences-Image-Processing\u0026file=S3_Cell_counting.mlx)\n-   ***Learning objective:*** Students will learn to segment images by shape and count the number of cells on a microscope slide image of red blood cells. \n\u003ca name=\"H_2415E2FD\"\u003e\u003c/a\u003e\n## [Problem set](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/biosciences-Image-Processing\u0026file=S4_Problem_set.mlx)\n-  [Problem set answers](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/biosciences-Image-Processing\u0026file=S5_Problem_set_answers.mlx)  \n\n## Related Courseware Modules\n\n- Biosciences: Working With Data [![View Biosciences: Working With Data on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/181586-biosciences-working-with-data) [![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Biosciences-Working-With-Data\u0026file=S1_Introduction.mlx)\n- Biosciences: Statistical Methods [![View Biosciences: Statistical Methods on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/163691-biosciences-statistical-methods)  [![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Biosciences-Statistical-Methods\u0026file=S1_Introduction.mlx)\n- Biosciences: Machine Learning [![View Biosciences: Machine Learning on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/163696-biosciences-machine-learning)  [![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Biosciences-Machine-Learning\u0026file=S1_Introduction.mlx)\n- Biosciences: Genetics [![View Biosciences: Genetics on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/163706-biosciences-genetics)  [![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Biosciences-Genetics\u0026file=S1_Introduction.mlx)\n\n## Products \n\nMATLAB®, Image Processing Toolbox™\n\n## References\n[1] Centers for Disease Control and Prevention. (2019).Trypanosomiasis, African. Retrieved from [https://www.cdc.gov/dpdx/trypanosomiasisafrican/index.html](https://www.cdc.gov/dpdx/trypanosomiasisafrican/index.html)\n[2] Centers for Disease Control and Prevention. (2020). Malaria. Retrieved from [https://www.cdc.gov/dpdx/malaria/index.html](https://www.cdc.gov/dpdx/malaria/index.html)\n\n## License\nThe License for this project is in the [LICENSE.md](LICENSE.md) file in this repository.\n\n##\n© Copyright 2023 The MathWorks, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks-teaching-resources%2Fbiosciences-image-processing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathworks-teaching-resources%2Fbiosciences-image-processing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks-teaching-resources%2Fbiosciences-image-processing/lists"}