Commit 87ee4c95 authored by Davis King's avatar Davis King

Added the option to make the poly features rotationally invariant.

This change breaks backwards compatibility with the previous version.
parent d0f916a4
......@@ -60,8 +60,8 @@ namespace dlib
if (X.nc() > 5)
{
X(cnt, 3) = x*y;
X(cnt, 4) = x*x;
X(cnt, 3) = x*x;
X(cnt, 4) = x*y;
X(cnt, 5) = y*y;
}
if (X.nc() > 9)
......
This diff is collapsed.
......@@ -54,12 +54,14 @@ namespace dlib
- #get_window_size() == 13
- #size() == 0
- #uses_normalization() == true
- #is_rotationally_invariant() == false
!*/
poly_image(
long order,
long window_size,
bool normalization = true
bool normalization = true,
bool rotation_invariance = false
);
/*!
requires
......@@ -70,6 +72,7 @@ namespace dlib
- #get_window_size() == window_size
- #size() == 0
- #uses_normalization() == normalization
- #is_rotationally_invariant() == rotation_invariance
!*/
void clear (
......@@ -124,6 +127,23 @@ namespace dlib
- #uses_normalization() == normalization
!*/
bool is_rotationally_invariant (
);
/*!
ensures
- returns true if the feature extractor will adjust the output so that it
is rotationally invariant. This is done by rotating each patch such that
the gradient vector always points in the same direction.
!*/
void set_is_rotationally_invariant (
bool rotation_invariance
);
/*!
ensures
- #is_rotationally_invariant() == rotation_invariance
!*/
void copy_configuration (
const poly_image& item
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment