Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| post:meanintinellipse.m [2019/10/11 14:39] – created pseudomoaner | post:meanintinellipse.m [2019/11/18 16:45] (current) – pseudomoaner | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== meanIntInEllipse.m ===== | ====== meanIntInEllipse.m ===== | ||
| - | **Description: | + | **Class:** Function |
| + | |||
| + | **Description: | ||
| **Author:** Oliver J. Meacock | **Author:** Oliver J. Meacock | ||
| Line 29: | 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)*2/pxSize; | + | minLenPx = round(procTrack.minorLen(ind)/ |
| - | majLenPx = procTrack.majorLen(ind)*2/pxSize; | + | majLenPx = round(procTrack.majorLen(ind)/ |
| phi = procTrack.phi(ind); | phi = procTrack.phi(ind); | ||
| Line 62: | Line 64: | ||
| </ | </ | ||
| + | |||
| + | **Example usage** | ||
| + | |||
| + | <code matlab> | ||
| + | imgLoc = ' | ||
| + | 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: | ||
| + | |||
| + | {{ : | ||