def test_keypoints_censure_moon_image_star():
 detector = CENSURE(mode='star')
 detector.detect(rescale(img, 0.25))
 expected_keypoints = np.array([[23, 27], [29, 89], [30, 86], [107, 59], [109, 64], [111, 67], [113, 70]])
 expected_scales = np.array([3, 2, 4, 2, 5, 3, 2])
 assert_array_equal(expected_keypoints, detector.keypoints)
 assert_array_equal(expected_scales, detector.scales)

def test_keypoints_censure_moon_image_star ( ) : detector = CENSURE ( mode = 'star' ) detector . detect ( rescale ( img , 0.25 ) ) expected_keypoints = np . array ( [ [ 23 , 27 ] , [ 29 , 89 ] , [ 30 , 86 ] , [ 107 , 59 ] , [ 109 , 64 ] , [ 111 , 67 ] , [ 113 , 70 ] ] ) expected_scales = np . array ( [ 3 , 2 , 4 , 2 , 5 , 3 , 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 star filter .