object_detection: Identifies Objects/Traces in Classified Images.

Description Usage Arguments Value Source References See Also Examples

View source: R/object_detection.R

Description

object_detection detects objects in classified images as clusters of pixels having a specific value (and corresponding to a specific class) and returns their centroid (median) coordinates. The function relies on the funciton bwlabel in order to deliniate objects/traces and on the function rasterToPoints in order to identify objects/traces centroid coordinates.

Usage

1
object_detection(classifiedimage, targetclassvalue = 1)

Arguments

classifiedimage

A raster object (RasterLayer) representing an image that was classified using dagsvm_classification_predict.

targetclassvalue

A numeric value representing the class values of classifiedimage for which objects/traces will be identified.

Value

The function returns a list with an element for each image file in directorydata containing the classified image.

Source

The function relies on the R packages raster (\insertCiteHijmans.2017TraceIdentification) and EBImage (\insertCitePau.2010TraceIdentification).

References

\insertAllCited

See Also

dagsvm_classification_predict.

Examples

1
#

henningte/TraceIdentification documentation built on May 26, 2019, 6:50 p.m.