Skip to content

Commit

Permalink
Update cropping.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkkienkeli authored Feb 9, 2021
1 parent 3081d66 commit 8d494c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepprofiler/imaging/cropping.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def unfold_channels(crop, mode=0):
def fold_channels(crop):
# Expected input image shape: (h, w * c), with h = w
# Output image shape: (h, w, c), with h = w
output = np.reshape(crop, (crop.shape[0], crop.shape[0], -1), order="F")
output = np.reshape(crop, (crop.shape[0], crop.shape[0], -1), order="F").astype(np.float)
for i in range(output.shape[-1]):
mean = np.mean(output[:,:,i])
std = np.std(output[:,:,i])
Expand Down

0 comments on commit 8d494c5

Please sign in to comment.