mcr_inspect_assignment: Plot group assignment of a phase in an image

Description Usage Arguments Examples

View source: R/classify_image.R

Description

Plots a false color image using groups of brightness that can either be determined from a graphical inspection of the result of mcr_inspect_phases or automaticalle determined by mcr_herd_minerals

Usage

1

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
myimage <- mcr_load_image(system.file("extdata", "testim.png", package = "mincountr"))

# (Semi-)Automatic approach:
mypeaks <- mcr_autoconstrain(myimage)
mcr_inspect_assignment(myimage, mypeaks$x1, mypeaks$x2)

# Manual assignments of brightnessgrouplimits:
mcr_inspect_assignment(
myimage,
lhs = c(0, 0.3, 0.5, 0.92),
rhs = c(0.05, 0.45, 0.65, 1)
)

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