boofcv.alg.descriptor
Class UtilFeature
- java.lang.Object
-
- boofcv.alg.descriptor.UtilFeature
-
public class UtilFeature extends java.lang.ObjectVarious utilities related to image features
-
-
Constructor Summary
Constructors Constructor and Description UtilFeature()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static TupleDesc_F64combine(java.util.List<TupleDesc_F64> inputs, TupleDesc_F64 combined)Concats the list of tuples together into one big feature.static <TD extends TupleDesc>
FastQueue<TD>createQueue(DescribeRegionPoint<?,TD> detDesc, int initialMax)Creates a FastQueue and declares new instances of the descriptor using the providedDetectDescribePoint.static <TD extends TupleDesc>
FastQueue<TD>createQueue(DetectDescribeMulti<?,TD> detDesc, int initialMax)Creates a FastQueue and declares new instances of the descriptor using the providedDetectDescribePoint.static <TD extends TupleDesc>
FastQueue<TD>createQueue(DetectDescribePoint<?,TD> detDesc, int initialMax)Creates a FastQueue and declares new instances of the descriptor using the providedDetectDescribePoint.static voidnormalizeL2(TupleDesc_F64 desc)Normalized the tuple such that the L2-norm is equal to 1.static voidnormalizeSumOne(TupleDesc_F64 desc)Normalized the tuple such that it's sum is equal to 1.
-
-
-
Method Detail
-
createQueue
public static <TD extends TupleDesc> FastQueue<TD> createQueue(DescribeRegionPoint<?,TD> detDesc, int initialMax)
Creates a FastQueue and declares new instances of the descriptor using the providedDetectDescribePoint. The queue will have declareInstance set to true, otherwise why would you be using this function?
-
createQueue
public static <TD extends TupleDesc> FastQueue<TD> createQueue(DetectDescribePoint<?,TD> detDesc, int initialMax)
Creates a FastQueue and declares new instances of the descriptor using the providedDetectDescribePoint. The queue will have declareInstance set to true, otherwise why would you be using this function?
-
createQueue
public static <TD extends TupleDesc> FastQueue<TD> createQueue(DetectDescribeMulti<?,TD> detDesc, int initialMax)
Creates a FastQueue and declares new instances of the descriptor using the providedDetectDescribePoint. The queue will have declareInstance set to true, otherwise why would you be using this function?
-
combine
public static TupleDesc_F64 combine(java.util.List<TupleDesc_F64> inputs, TupleDesc_F64 combined)
Concats the list of tuples together into one big feature. The combined feature must be large enough to store all the inputs.- Parameters:
inputs- List of tuples.combined- Storage for combined output. If null a new instance will be declared.- Returns:
- Resulting combined.
-
normalizeL2
public static void normalizeL2(TupleDesc_F64 desc)
Normalized the tuple such that the L2-norm is equal to 1. This is also often referred to as the Euclidean or frobenius (all though that's a matrix norm).
value[i] = value[i]/sqrt(sum(value[j]*value[j], for all j))
- Parameters:
desc- tuple
-
normalizeSumOne
public static void normalizeSumOne(TupleDesc_F64 desc)
Normalized the tuple such that it's sum is equal to 1.
value[i] = value[i]/sqrt(sum(value[j], for all j))
- Parameters:
desc- tuple
-
-
DataMelt 3.0 © DataMelt by jWork.ORG