Eliminating background using a mask - use color spaces, histogram, thresholding, intensity transformation
2 次查看(过去 30 天)
显示 更早的评论
This project involves eliminating the background of the peppers2.png image by creating a mask image. The mask should seek to retain as much of the peppers and onions as possible while eliminating the entire purple background cloth. The goal is to use color space(s), histograms, thresholding concepts, intensity transformations, and/or image enhancement methods to create the mask. Morphological algorithms should not be used for this project. This document describes the project requirements and deliverables.
Write a matlab script named peppers.m that creates the mask and outputs appropriate images. The mask image should only contain values of zero and one and should be stored in theuint8variableM. Thisscriptshouldoutputthemaskimagetofilemask.pngsothattheforeground pixels are clearly visible (scale it so the foreground pixels are clearly visible). This script should also output the masked image, called onlypeppers.png, that contains the peppers and onions with the cloth set to zero (black). This image should be created by multiplying each RGB color plane of the peppers2.png image with the mask.
This script should be sufficiently complete in the solution logic that the instructor is able to determine how all aspects of the solution were obtained, including threshold parameters. In other words, if a threshold parameter was based on a histogram, then the histogram should be generated in the script and plotted so it is clear where the parameter came from.
This script should be properly documented according to the documentation rubric given on the website and the script template discussed in class.
Once the peppers.m script is written and uploaded, it should be graded to ensure that it runs and to provide feedback as to how well it works.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!