Question: In Matlab Task 10 (25 points) Binary image: similar to the blue-screening technique on TV and in movies function [ out!mg ] = binaryMask( 1n1mg
In Matlab
Task 10 (25 points) Binary image: similar to the blue-screening technique on TV and in movies function [ out!mg ] = binaryMask( 1n1mg ) Create one binary image out Img (also known as the mask), which will represent the boundaries of the object of interest in the input image inImg. A binary image has only values of 0 and 1, so only black and white pixels, no grey shades (this means outImg is a 2-dimensional matrix) To make this task easier, you only need to make this function work for one input image: wrench1.jpg. Your algorithm should be able to figure out the threshold value that separates the background from the "object of interest" in the image. The pixels in the binary image will have the value of O if they belong to the background, and 1 otherwise (if they are part of the wrench). Choosing the Binary Image menu button should result in: a. Calling the binaryMask function, with the current image as input. b. Displaying the original image and the resulting image, side by side (use subplots) c. Saving the resulting image
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
