[3b2327]: / man / partition_lung.Rd

Download this file

29 lines (25 with data), 929 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/partition_lung.R
\name{partition_lung}
\alias{partition_lung}
\title{Partition the lung}
\usage{
partition_lung(
img,
kernel_size = c(30, 30, 30),
kernel_stride = c(30, 30, 30),
centroid = TRUE
)
}
\arguments{
\item{img}{Lung scan to be partitioned. Can be in 3D matrix or ANTs image file format.}
\item{kernel_size}{Size of the kernel, in voxel units of width, depth, and height. Must be c(3,3,3) or greater. Default: c(30,30,30)}
\item{kernel_stride}{Stride (or spacing) between kernels, in voxel units, for width, depth, and height. If kernel_stride = kernel_size, the partitions are non-overlapping. If stride = c(1,1,1), then each voxel is returned.}
\item{centroid}{Logical. If true, output includes the centroids of each partition.}
}
\value{
Matrix of x, y, and z coordinates for each partition
}
\description{
Partition the lung
}