Skip to content

Commit

Permalink
feat: update to new ndi namespace for rotate
Browse files Browse the repository at this point in the history
  • Loading branch information
martibosch committed Mar 28, 2024
1 parent 0729a3d commit a3b1362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detectree/pixel_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def build_features_from_arr(self, img_rgb):
for j, orientation in enumerate(range(self.num_orientations)):
# theta = orientation / num_orientations * np.pi
theta = orientation * 180 / self.num_orientations
oriented_kernel_arr = ndi.interpolation.rotate(base_kernel_arr, theta)
oriented_kernel_arr = ndi.rotate(base_kernel_arr, theta)
# img_filtered = ndi.convolve(img_lab_l, oriented_kernel_arr)
img_filtered = cv2.filter2D(
img_lab_l, ddepth=-1, kernel=oriented_kernel_arr
Expand Down

0 comments on commit a3b1362

Please sign in to comment.