February 4, 2020 - Creating Abstract and Labeling & Thresholding Gonad by Size
Lab Work
Creating Abstract
Today, I finished writing a draft of the abstract for the Undergraduate Research Symposium. I used these resources to help me write the abstract:
- National review of Ostrea angasi aquaculture: historical culture, current methods and future priorities
- O. angasi heat shock trial
- July 18 2018, O. angasi conditioning
- Undergraduate Research Symposium Abstract Writing Workshop Presentation
- 2019 Symposium Abstracts
Labeling and Thresholding Gonad by Size
Last time, I was able to segment the gonad present in the histology images based off of color, but there were some problems with solely using this mode of segmentation. The biggest problem was when segmenting for female gonad, male gonad was also being included in the output. Thus, my next step in effectively segmenting the images was to mark and label each of the contours and then remove certain contours if they were not within a certain size threshold. I used these sources to help me to draw out the segmented contours of the image, label these contours, and also threshold them by size:
- In Python, how can I reduce a list of contours to those of a specified size?
- Detecting multiple bright spots in an image with Python and OpenCV
- Drawing Functions
By looking at these sources, I was finally able to segment all of the objects in the image at the same time based off of color, and then remove all of the areas that were not female gonad based off of size, and the final product is shown below:
female gonad:
male gonad:
together:
The updated female gonad area based on the image is:
Female Gonad Total Area: 4875.5
It seems like the output images are in BGR even though I thought I had turned the images into RGB format, so I will have to look into that more.
Another thing that I will need to do is to convert the area that was found in these images from pixel area to um. These links might be helpful for figuring this out:
Next Steps
- Review and revise abstract
- Convert pixel area of gonad to um