mcr_herd_minerals: Calculate phase area share

Description Usage Arguments Value Examples

View source: R/classify_image.R

Description

calculate the percentage share of mineral phases of the area of an image.

Usage

1
mcr_herd_minerals(x, lhs, rhs)

Arguments

x

an image loaded with mcr_load_image

lhs

a vector with the left-hand-side position of peaks observed in mcr_inspect_phases

rhs

a vector with the right-hand-side position of peaks observed in mcr_inspect_phases

Value

A tibble containing the number of pixels and their relative share of total image area per phase

Examples

1
2
3
myimage <- mcr_load_image(system.file("extdata", "testim.png", package = "mincountr"))
mypeaks <- mcr_autoconstrain(myimage)
mcr_herd_minerals(myimage, mypeaks$x1, mypeaks$x2)

Ignimbrit/mincountr documentation built on April 11, 2020, 12:10 a.m.