mirror of
https://github.com/13hannes11/situr.git
synced 2024-09-03 20:50:58 +02:00
add basic tests for Dim expansion and reduction and added imports
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
import numpy as np
|
||||
from PIL import Image, ImageDraw
|
||||
from skimage import img_as_float
|
||||
from skimage.feature import blob_dog
|
||||
|
||||
|
||||
def extend_dim(array):
|
||||
ones = np.ones((array.shape[0], 1))
|
||||
return np.append(array, ones, axis=1)
|
||||
|
||||
Reference in New Issue
Block a user