Source code for mlprimitives.adapters.skimage

# -*- coding: utf-8 -*-

import skimage.feature

from mlprimitives.utils import image_transform


[docs]def hog(X, orientations, pixels_per_cell_x, pixels_per_cell_y, cells_per_block_x, cells_per_block_y, block_norm, visualize, multichannel): return image_transform( X, skimage.feature.hog, reshape_before=True, pixels_per_cell=(pixels_per_cell_x, pixels_per_cell_y), cells_per_block=(cells_per_block_x, cells_per_block_y), block_norm=block_norm, visualize=visualize, multichannel=multichannel )