R/get_masked_pixels_training_set.r
get_masked_pixels_training_set.Rd
Takes a a list of images and masks and extracts pixels and pixel features from the unmasked portion of the image
get_masked_pixels_training_set(Img)
Img | A list where every element is a list with elements img and mask. See output from get_images_and_masks for example. |
---|
A data.frame of pixel features for unmasked pixels.
This function extracts nine features from every pixel. Makes a table indicating pixke coordinates and feature values, and then subsets the table returning only unmasked pixels.
The 9 features are the intensity values for the RGB space, as well as the gradient magnitude and gradient orientation for each color channel.