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.
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
)
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 img
.
datanm
: The R data filename.
description
: The description given in description
.
edgeIsAnnulus
: The logical given in edgeIsAnnulus
that identified whether the structure edge/margin should be considered as an annulus.
snap2Transect
: The logical from snap2Transect
that identified whether the selected points were “snapped” to the transect or not.
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 "Provided"
through the scalingFactor
argument or derived from a "scaleBar"
.
sbPts
: A data.frame of x
and y
coordinates for the endpoints of the scale-bar if the scaling factor was derived from a scale-bar.
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 windowSize
value.
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 x
and y
coordinates on the image for the selected annuli. These points may have been “snapped” to the transect if snap2Transect==TRUE
.
radii
: A data.frame that contains the unique id
, the reading
code, the age-at-capture in agecap
, the annulus number in ann
, the radial measurements in rad
, and the radial measurement at capture in radcap
.
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.)
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.
A vector of unique identifiers for the fish or structure(s) being examined. Will be coerced to a character. If length of img
is greater than 1, then the length of id
must be the same. If missing then you will be prompted to enter a value.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
See details in RFBCoptions
.
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 addNote=TRUE
.
Derek H. Ogle, DerekOgle51@gmail.com.
This function requires interaction from the user. A detailed description of its use is in the vignettes on the RFishBC website.
showDigitizedImage
and RFBCoptions
.
## None because this requires interaction from the user.
## See the link to the extensive documentation in the Details.
Run the code above in your browser using DataLab