Question: The function header and comments are provided for you in the file called zones _ starter.m . Don't forget to remove from the Testing your

The function header and comments are provided for you in the file called zones_starter.m. Don't forget to remove from the Testing your zones function
To test your zones function, first read the dome picture into MATLAB by typing this into the Command Window:
img = imread('dome_area.jpg');
Then get a set of radiation data:
rad = scan_radiation(30);
Next, call your
function and save the smoothed data back into rad:
rad = removeNoise(rad,15);
Finally, call zones and show the result as an image:
imshow(zones(img, rad));
If your removeNoise function and
functions are working correctly, you should see a picture that looks like this:
filename before you try to call this function.
function [ img ]= zones( img, rad )
% Generates an image colored according to radiation
% threat zones. Values from rad are used to determine
% the zone, and the hue value in img is set accordingly.
%
img: a 3-dimensional matrix of numbers representing
an image in RGB (red-green-blue) format, which
forms the background to which the heatmap
colors are applied.
rad: a matrix of numbers representing the radiation
measurements, between 0 and 100 millisieverts.
It has the same width and height as the img parameter.
Testing your zones function
To test your zones function, first read the dome picture into MATLAB by typing this into the Command Window:
The function header and comments are provided for

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!