I am a very new self-taught MATLAB user (so bear with me) trying to write code for some research I am doing for my undergraduate thesis to expedite my analysis. I have fluorescent microscopy images which i am trying to trace with an outline (my ROI's) and then quantify pixel information inside the ROI
-Differentiate ovalish [or tubular] structures outlined from round structures - first of actual number of pixels only within my outline - eventually, with a tiff file, find # of green, red, and yellow pixels within outline.
Using the Image Processing Toolbox I have come up with a reasonable (i think) outline program with the final output being a binary outline based of the grayscale image of the original tiff. But how do I extract information from the original image, just from these outlined regions? I assume regionprops somehow but this is where I am having trouble????
Current Code: function [I,BWoutline,s] = Tloutline2() %Trace the TL outline for any cell % Based on conversion to grayscale first
disp('Load your image:'); I = imread(uigetfile('filename')); imshow(I)
%convert to grayscale binary image J = rgb2gray(I); imshow(J);