getSteps: Select the Steps of a Calibration Wedge Interactively

Description Usage Arguments Value Examples

Description

Obtain the Grayvalue of Each Step of a Calibration Wedge

Usage

1
getSteps(im, nSteps = NULL, auto = FALSE, nPixel = 50)

Arguments

im

an image.

nSteps

number of steps of the calibration wedge to obtain grayvalues from.

auto

logical. If TRUE, automatic detection of the steps given a line is carried out. Use with care.

nPixel

gives the line width when 'auto = TRUE'

Value

a numeric vector

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
if(interactive()){
# read a sample file
 im <- imRead(file = system.file("img", "AFO1046.1200dpi.png", package="xRing"))

# display the image
  imDisplay(im)

# get the grayvalues from the calibration wedge on the film
  steps <- grayvalues <- getSteps(im, 7) #select 7 ROIs
  steps1 <- grayvalues <- getSteps(im, 7, auto = TRUE) #select a single ROI
  cor(steps, steps1)
}

xRing documentation built on May 2, 2019, 5:51 a.m.

Related to getSteps in xRing...