digitizeRadii {RFishBC} | R Documentation |
Collect radial measurements from a calcified structure by interactively selecting annuli
Description
The user interactively select points on an image of a calcified structure. When finished, radial measurements (from the structure focus to the selected points) are calculated (either with arbitrary units or actual units if a scale-bar is included on the image) and written to an external file for later use.
Usage
digitizeRadii(
img,
id,
reading,
suffix,
description,
edgeIsAnnulus,
popID,
IDpattern,
IDreplace,
windowSize,
deviceType,
closeWindow,
scaleBar,
scaleBarLength,
scaleBarUnits,
col.scaleBar,
lwd.scaleBar,
scalingFactor,
makeTransect,
snap2Transect,
col.transect,
lwd.transect,
pch.sel,
col.sel,
cex.sel,
pch.del,
col.del,
showInfo,
pos.info,
cex.info,
col.info,
addNote,
note
)
Arguments
img |
A vector of strings that indicates the image (must be PNG, JPG, BMP, or TIFF) to be loaded and plotted. By default the user will be provided a dialog box from which to choose the file(s). Alternatively the user can supply the name(s) of the file(s). Either way the file(s) must be in the current working directory. |
id |
A vector of unique identifiers for the fish or structure(s) being examined. Will be coerced to a character. If length of |
reading |
See details in |
suffix |
See details in |
description |
See details in |
edgeIsAnnulus |
See details in |
popID |
See details in |
IDpattern |
See details in |
IDreplace |
See details in |
windowSize |
See details in |
deviceType |
See details in |
closeWindow |
See details in |
scaleBar |
See details in |
scaleBarLength |
See details in |
scaleBarUnits |
See details in |
col.scaleBar |
See details in |
lwd.scaleBar |
See details in |
scalingFactor |
See details in |
makeTransect |
See details in |
snap2Transect |
See details in |
col.transect |
See details in |
lwd.transect |
See details in |
pch.sel |
See details in |
col.sel |
See details in |
cex.sel |
See details in |
pch.del |
See details in |
col.del |
See details in |
showInfo |
See details in |
pos.info |
See details in |
cex.info |
See details in |
col.info |
See details in |
addNote |
See details in |
note |
A specific note about this reading (e.g., a note that the image was poor, some annulus were suspect, or the image should be re-read.). If missing then the user will be prompted to include a note if |
Details
This function requires interaction from the user. A detailed description of its use is in the vignettes on the RFishBC website.
Value
NULL
if more than one file was given in img
; otherwise (i.e., only one file was given) a list with the following:
image: |
The full filename given in |
datanm: |
The R data filename. |
description: |
The description given in |
edgeIsAnnulus: |
The logical given in |
snap2Transect: |
The logical from |
scalingFactor: |
A single numeric used to convert measurements on the structure image to actual measurements on the structure. Measurements on the structure image were multiplied by this value. |
sfSource: |
A character string that identifies whether the scaling factor was |
sbPts: |
A data.frame of |
sbLength: |
A single numeric that is the known (actual) length of the scale-bar if the scaling factor was derived from a scale-bar. |
sbUnits: |
A single character that is the units of measurement for the known (actual) length of the scale-bar if the scaling factor was derived from a scale-bar. |
slpTransect: |
The slope of the transect. |
intTransect: |
The intercept of the transect. |
slpPerpTransect: |
The slope of the line perpendicular to the transect. |
windowSize: |
A numeric of length two that contains the width and height of the window used to display the structure image. One of these units was set by the given |
pixW2H: |
The ratio of pixel width to height. This is used to correct measurements for when an image is not square. |
pts: |
A data.frame that contains the |
radii: |
A data.frame that contains the unique |
note: |
A string that contains a note about the reading (e.g., a note that the image was poor, some annulus were suspect, or the image should be re-read.) |
Author(s)
Derek H. Ogle, DerekOgle51@gmail.com.
See Also
showDigitizedImage
and RFBCoptions
.
Examples
## None because this requires interaction from the user.
## See the link to the extensive documentation in the Details.