summary_index {pliman}R Documentation

Summary an object index

Description

Performs a report of the index between and within objects when object_index argument is used in analyze_objects(). By using a cut point, the number and proportion of objects with mean value of index bellow and above cut_point are returned. Additionaly, the number and proportion of pixels bellow and above the cutpoint is shown for each object (id).

Usage

summary_index(object, index, cut_point, select_higher = FALSE)

Arguments

object

An object computed with analyze_objects().

index

The index desired, e.g., "B". Note that these value must match the index(es) used in the argument object_index of analyze_objects().

cut_point

The cut point.

select_higher

If FALSE (default) selects the objects with index smaller than the cut_point. Use select_higher = TRUE to select the objects with index higher than cut_point.

Value

A list with the following elements:

Author(s)

Tiago Olivoto tiagoolivoto@gmail.com

Examples

library(pliman)
soy <- image_pliman("soy_green.jpg")
anal <- analyze_objects(soy, object_index = "G")
plot_measures(anal, measure = "G")

summary_index(anal, index = "G", cut_point = 0.5)

[Package pliman version 1.1.0 Index]