def test_keypoints_censure_moon_image_dob():
 detector = CENSURE()
 detector.detect(img)
 expected_keypoints = np.array([[21, 497], [36, 46], [119, 350], [185, 177], [287, 250], [357, 239], [463, 116], [464, 132], [467, 260]])
 expected_scales = np.array([3, 4, 4, 2, 2, 3, 2, 2, 2])
 assert_array_equal(expected_keypoints, detector.keypoints)
 assert_array_equal(expected_scales, detector.scales)

def test_keypoints_censure_moon_image_dob ( ) : detector = CENSURE ( ) detector . detect ( img ) expected_keypoints = np . array ( [ [ 21 , 497 ] , [ 36 , 46 ] , [ 119 , 350 ] , [ 185 , 177 ] , [ 287 , 250 ] , [ 357 , 239 ] , [ 463 , 116 ] , [ 464 , 132 ] , [ 467 , 260 ] ] ) expected_scales = np . array ( [ 3 , 4 , 4 , 2 , 2 , 3 , 2 , 2 , 2 ] ) assert_array_equal ( expected_keypoints , detector . keypoints ) assert_array_equal ( expected_scales , detector . scales )
verify the actual censure keypoints and their corresponding scale with the expected values for dob filter .