Description Usage Arguments See Also Examples
Classify images as superpixel slices
1 2 3 4 5 6 7 8 | classify_img_sliced(
classifier,
img,
slices = slic(sobel_filter(img, 5))[[2]],
features,
class_highlight,
...
)
|
classifier |
a classifier |
img |
image to classify |
features |
a features frame to be used for the classification |
class_highlight |
a classiication to highlight if the prediction is categorical |
... |
additional arguments passed to kmeans |
slic
1 2 3 4 5 6 7 8 9 | # trainset <- build_train_multi(
# params_df,
# train_size_each = 5000,
# filter_widths = c(3,5))
#
# classifier <- ranger::ranger(pixel_class ~ ., trainset)
# features <- calc_features(base_img, c(3,5))
# sliced_img <- slic(sobel_filter(base_img, 5))
# classify_img_sliced(classifier, base_img, sliced_img[[2]],features, "sphere")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.