cube_pro_seg: Extract and align all profiles for a given cross-section

View source: R/cube_pro_seg.R

cube_pro_segR Documentation

Extract and align all profiles for a given cross-section

Description

Extracts all possible profiles for a cross-section surface, following a indicative cluster.

Usage

cube_pro_seg(cube, dir = "y")

Arguments

cube

The hyperspectral cube returned by the function cube_seg. See Details.

dir

Direction of the profiles. One of "x" or "y". See Details.

Details

This is a specific function designed to extract and align profiles of sediment disks cross-section images. The image segmentation should result in a single cluster containing the samples. If dir = "y", all columns will be sampled from top to bottom and if dir = "x" all rows will be sampled from left to right. It is important that the image has the proper orientation for the results to be meaningful since the profiles will be aligned at their start position (top for "y" and left for "x"). The objective is to extract depth profiles where depth is relative to the surface at each column (or row, if dir = "x").

Value

A raster stack with the same wavelength as the input data, with profiles aligned at their start position.


AlexCast/surfspec documentation built on July 7, 2022, 9:35 a.m.