segcontour: Displays label contours in an MR image

Description Usage Arguments Details Value

View source: R/segcontour.R

Description

Displays one or more label contours for one or more slices in an MR image.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
segcontour(
  filename_MR,
  filename_seg,
  labelnametibble,
  slice_no,
  target_label,
  anatomical_plane = 3,
  rowno = 1,
  colno = 1
)

Arguments

filename_MR

A NIfTI-file of an MR image

filename_seg

A NIfTI-file of segmentation

labelnametibble

A label name tibble with correct format and unique columns. First column of the label name tibble must contain an integer label number and second column must contain a label name string. Label numbers and label names must be unique.

slice_no

One or more slice numbers for which label contours are to be displayed.

target_label

One or more label numbers for which label contours are to be displayed.

anatomical_plane

1 for coronal plane, 2 for sagittal plane and 3 for transverse plane. Default is 3.

rowno

Number of rows for showing images. Default is 1.

colno

Number of columns for showing images. Default is 1.

Details

Displays one or more label contours for one or more slices in an MR image for given label numbers. Contours lie on the edge of regions.

Value

One or more MR images with label contours for slice(s). A legend for label contours with label names. Only contours which are in the label name tibble and input label numbers will be displayed in the result.


yupingikub/IKUB documentation built on Dec. 23, 2021, 8:20 p.m.