Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| post:meanintinellipse.m [2019/10/11 15:37] – pseudomoaner | post:meanintinellipse.m [2019/11/18 16:45] (current) – pseudomoaner | ||
|---|---|---|---|
| Line 31: | Line 31: | ||
| %Rescale ellipse parameters | %Rescale ellipse parameters | ||
| - | xPx = procTrack.x(ind)/ | + | xPx = round(procTrack.x(ind)/ |
| - | yPx = procTrack.y(ind)/ | + | yPx = round(procTrack.y(ind)/ |
| - | minLenPx = procTrack.minorLen(ind)/ | + | minLenPx = round(procTrack.minorLen(ind)/ |
| - | majLenPx = procTrack.majorLen(ind)/ | + | majLenPx = round(procTrack.majorLen(ind)/ |
| phi = procTrack.phi(ind); | phi = procTrack.phi(ind); | ||
| Line 67: | Line 67: | ||
| **Example usage** | **Example usage** | ||
| + | <code matlab> | ||
| imgLoc = ' | imgLoc = ' | ||
| trackLoc = ' | trackLoc = ' | ||
| load(trackLoc,' | load(trackLoc,' | ||
| | | ||
| + | %Get the pixel size from the input image | ||
| + | imgInfo = imfinfo(imgLoc); | ||
| + | pixelSize = 1/ | ||
| + | | ||
| + | %Load the image | ||
| + | imPlane = double(imread(startImgLoc,' | ||
| + | | ||
| + | %Get the mean and total fluorescence of the object in track 10 at timepoint 1 | ||
| + | [meanFluo, | ||
| + | </ | ||
| + | |||
| + | **Example output:** Histogram of mean object intensities for a set of tracks with an associated fluorescence image at their first timepoint. For more details see [[post: | ||
| + | |||
| + | {{ : | ||