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 zonesstarter.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 imreaddomearea.jpg;
Then get a set of radiation data:
rad scanradiation;
Next, call your
function and save the smoothed data back into rad:
rad removeNoiserad;
Finally, call zones and show the result as an image:
imshowzonesimg 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 dimensional matrix of numbers representing
an image in RGB redgreenblue format, which
forms the background to which the heatmap
colors are applied.
rad: a matrix of numbers representing the radiation
measurements, between and 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:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
