Test Your Antarctica Water Segmentation Function
Create a function to segment the Antarctica ice shelf images using the Color Thresholder app as described in the previous reading. You can use this function to calculate the increase in visible water between the two images.
Copy the code from your generated function into the first code box below. We’ve provided a function name for you below, segmentMeltwater. Copy the code from inside your function (do not copy the first line or the last end, just the code inside) and paste into the first code box below. Use the Run Function button to make sure you’ve copied the code over correctly and it works before submitting. Use the feedback to help you determine how to adjust your thresholds.
function [BW, maskedRGBImage] = segmentMeltwater(RGB)
% copy the code inside your function here