Module org.scijava.ops.image
Class HistogramOfOrientedGradients2D<T extends RealType<T>>
- java.lang.Object
-
- org.scijava.ops.image.features.hog.HistogramOfOrientedGradients2D<T>
-
- All Implemented Interfaces:
Computers.Arity3<RandomAccessibleInterval<T>,Integer,Integer,RandomAccessibleInterval<T>>,Consumers.Arity4<RandomAccessibleInterval<T>,Integer,Integer,RandomAccessibleInterval<T>>
public class HistogramOfOrientedGradients2D<T extends RealType<T>> extends Object implements Computers.Arity3<RandomAccessibleInterval<T>,Integer,Integer,RandomAccessibleInterval<T>>
Calculates a histogram of oriented gradients which is a feature descriptor. The technique first calculates the partial derivatives and then for each pixel a histogram of gradient directions by summing up the magnitudes of the neighbored (@param spanOfNeighborhood) pixels. The directions are divided in (@param numOrientations) bins. The output is 3d: for each bin an own channel. Input can be either a 2D image or a 3D image where the third dimension is interpreted as color channel (e.g. RGB, LAB, ...). The algorithm is based on the paper "Histograms of Oriented Gradients for Human Detection" by Navneet Dalal and Bill Triggs, published 2005.- Author:
- Simon Schmid (University of Konstanz)
- Implementation Note:
- op names='features.hog'
-
-
Constructor Summary
Constructors Constructor Description HistogramOfOrientedGradients2D()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompute(RandomAccessibleInterval<T> in, Integer numOrientations, Integer spanOfNeighborhood, RandomAccessibleInterval<T> out)TODO-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.scijava.function.Computers.Arity3
accept
-
Methods inherited from interface org.scijava.function.Consumers.Arity4
andThen
-
-
-
-
Method Detail
-
compute
public void compute(RandomAccessibleInterval<T> in, Integer numOrientations, Integer spanOfNeighborhood, RandomAccessibleInterval<T> out)
TODO- Specified by:
computein interfaceComputers.Arity3<RandomAccessibleInterval<T extends RealType<T>>,Integer,Integer,RandomAccessibleInterval<T extends RealType<T>>>- Parameters:
in-numOrientations-spanOfNeighborhood-out-
-
-