Skip to content

Commit

Permalink
Merge pull request #682 from ANTsX/TestHessian
Browse files Browse the repository at this point in the history
ENH:  Add hessian objectness test.
  • Loading branch information
ntustison authored Jul 14, 2024
2 parents 4edcc16 + 24d1a2c commit 4eaaf59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,11 @@ def test_add_noise(self):
noise_image = ants.add_noise_to_image(image, 'saltandpepper', (0.1, 0.0, 100.0))
noise_image = ants.add_noise_to_image(image, 'shot', 1.0)
noise_image = ants.add_noise_to_image(image, 'speckle', 1.0)


def test_hessian_objectness(self):
image = ants.image_read(ants.get_ants_data('r16'))
hessian = ants.hessian_objectness(image)

def test_thin_plate_spline(self):
points = np.array([[-50, -50]])
deltas = np.array([[10, 10]])
Expand Down

0 comments on commit 4eaaf59

Please sign in to comment.