KumarLabJax / JABS-behavior-classifier

Behavior Classifier Component from the Jax Animal Behavior System
Other
11 stars 1 forks source link

Tc 307 - Bug fix Pixel Scaling #16

Closed nick-sebasco closed 5 months ago

nick-sebasco commented 1 year ago

Critical piece of code added to handle pixel scaling: ((contours[(contours[..., 0] > -1) & (contours[..., 1] > -1)]) * self._pixel_scale).astype(np.float32)

Doing this before computing the moments/ hu_moments/ ellipse fit features ensures that the units are correct.

SkepticRaven commented 5 months ago

Closing because changes were applied in https://github.com/KumarLabJax/JABS-behavior-classifier/pull/22