Description Usage Arguments Details
This function calibrates plate cropping and rotation parameters for an image with an arbritrarily sized grid of plates.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
dir |
Directory of images to process. |
grid_rows |
Number of expected rows in colony grid. |
grid_cols |
Number of expected columns in colony grid. |
rotate |
A rough angle in degrees clockwise to rotate each plate. The
rotation angle will be further calibrated after applying this rotation.
Defaults to |
range |
Range to explore (in degrees) when calibrating rotation angle.
Defaults to |
thresh |
Fraction of foreground pixels needed to identify plate
boundaries when rough cropping. Defaults to |
invert |
Should the image be inverted? Defaults to |
default_crop |
If not |
overwrite |
Should existing crop calibration be overwritten?
Defaults to |
display |
Should cropped images be displayed for review?
Defaults to |
save_plate |
Should the calibrated plate be saved rather than
displayed (useful when calibrating many plates)? Defaults to |
colony_radius |
If <= 1, the box drawn around colonies will be this fraction of half the average distance between rows and columns (Defaults to 1). If > 1, the box will have a radius of this many pixels. |
max_smooth |
Maximum number of pixels to allow when smoothing row and column positions of individual colonies. |
Crop calibration procedes through the following 3 steps:
Rough crop
Rotate
Fine crop
Rough cropping relies on high contrast between plates. If
invert = TRUE
plates should be light and the region between plates
should be dark, and vice versa if invert = FALSE
.
Fine cropping finds the nearest object edge (problematic for plates without any growth on the intended grid edges).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.