locked-fg / JFeatureLib

Free Java library for image features and point/region detectors used in ComputerVision
38 stars 14 forks source link

Inconsistent Parameterization #8

Open locked-fg opened 11 years ago

locked-fg commented 11 years ago

Different feature descriptors are parameterized differently.

It would be nice to have a full Java based API for settings parameters.

Some examples:

PHOG has Setters for bins and recursions, but not for canny.

setGradientSource seems to be a bit odd. There is an initial value, but after the first run() it becomes null, making the feature descriptor somewhat non-reentrant.

AutoColorCorrelogram on the other hand apparently cannot be configured at all from Java, but only via properties, meaning you can't use different parameterizations in the same run if you want to compare them.

locked-fg commented 11 years ago

Descriptors shouldn't be reused at all. Maybe this should be guaranteed by throwing an exception after the first run.

locked-fg commented 11 years ago

Different configurations can be compared easily: Create different instances and call the set Properties methods. The according property values are set implicitly.