Question: Create a filtered image For task you a filtered image to aid airport security staff, replacing all pixels this need to create EXCEPT the blue
Create a filtered image
For task you a filtered image to aid airport security staff, replacing all pixels this need to create EXCEPT the blue ones with the colour white.
The RGB values for white are (255, 255, 255).
Write a script file that filters the xray image to make the inorganic material more noticable. Make sure to read and display the image before filtering it. You will then need to examine each pixel in turn and replace it with a white one if it is NOT blue. Use the PixellsBlue function below to determine if pixels are blue or not. Also be sure to display the final filtered image in a separate figure. Does your filter work completely? If not why not? Explain why or why not
PixellsBlue Function:
function [out] = PixelIsBlue(r,g,b)
if r<128 && g<128 b>=128
out = true;
else
out = false;
end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
