- Mirror your mask about the horizontal axis.
- Stitch the original and mirrored image horizontally to obtain a complete circle.
- Preprocess the image obtained from step 2.
- Use the "Image Segmenter" app and detect and save the mask for the complete circle.
- Horizontally crop the mask obtained from top till mid.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1499024/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1499029/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1499034/image.png)
- https://in.mathworks.com/help/matlab/ref/flipud.html
- https://in.mathworks.com/help/images/ref/imgaussfilt.html