summary_index {pliman} | R Documentation |
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).
summary_index(object, index, cut_point, select_higher = FALSE)
object |
An object computed with |
index |
The index desired, e.g., |
cut_point |
The cut point. |
select_higher |
If |
A list with the following elements:
ids
The identification of selected objects.
between_id
A data frame with the following columns
n
The number of objects.
nsel
The number of selected objects.
prop
The proportion of objects selected.
mean_index_sel
, and mean_index_nsel
The mean value of index
for the
selected and non-selected objects, respectively.
within_id
A data frame with the following columns
id
The object identification
n_less
The number of pixels with values lesser than or equal to
cut_point
.
n_greater
The number of pixels with values greater than cut_point
.
less_ratio
The proportion of pixels with values lesser than or equal to
cut_point
.
greater_ratio
The proportion of pixels with values greater than
cut_point
.
Tiago Olivoto tiagoolivoto@gmail.com
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)