A virtual magnifying glass function is developed in this recipe. Using this, you can load any image and run the virtual magnifying glass over it for closer inspection at your cursor tip. This recipe was adapted from Mingjing Zhang's submission on MATLAB Central File Exchange.
Load the image of a microtiter plate with a distribution of filled and empty wells:
userdata.img_rgb = imread('sampleImage.png');
Perform the following steps:
% The image size userdata.size_img = size(userdata.img_rgb); % the start time (to be used along with the frame rate % info to determine how often image should be updated) ...