Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

La nature à horreur du vide. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions image_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

def view(x, interactive=True):
"""
Show a grey level image
Expand All @@ -16,9 +15,6 @@ def view(x, interactive=True):
p.ioff()
p.imshow(x, cmap=cm.gray, interpolation='nearest')
p.show()

pass
#

def make_transparent_mask(mask, opacity=0.6):
"""
Expand Down Expand Up @@ -48,7 +44,6 @@ def make_transparent_mask(mask, opacity=0.6):
alpha_mask[:,:,3] = mask * 255 * opacity

return alpha_mask
#

def mask_image(image, mask):
"""
Expand Down Expand Up @@ -81,7 +76,6 @@ def mask_image(image, mask):
masked[:,:,2] = image # Red

return masked
#

def read_grey_frame(video, log):
# read next frame from a video capture object
Expand All @@ -100,7 +94,6 @@ def read_grey_frame(video, log):
img = img[:,:,1]

return(img)
#

def get_particle_area(x) :
"""
Expand All @@ -114,5 +107,3 @@ def get_particle_area(x) :
import numpy as np

return(np.sum(x._label_image[x._slice] == x.label))
#

2 changes: 0 additions & 2 deletions os_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ def checkmakedirs(path) :
raise
os.close(f_descriptor)
os.remove(f_name)

pass