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

Fix typo #112

Open
wants to merge 4 commits 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions ClearMap/Analysis/Measurements/ShapeDetection.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def detect_shape(source, seeds, threshold = None, verbose = False):
mask = source > threshold;

peaks = vox.voxelize(seeds, shape=source.shape, weights=np.arange(1, seeds.shape[0]+1)).array;
shapes = skimage.morphology.watershed(-source, peaks, mask=mask);
shapes = skimage.segmentation.watershed(-source, peaks, mask=mask);
#shapes = watershed_ift(-source.astype('uint16'), peaks);
#shapes[numpy.logical_not(mask)] = 0;

Expand Down Expand Up @@ -170,4 +170,4 @@ def find_intensity(source, label, max_label = None, method = 'sum', verbose = Fa
timer.print_elapsed_time(head='Intensity detection');

return intensities


4 changes: 2 additions & 2 deletions ClearMap/ImageProcessing/Experts/Cells.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

default_cell_detection_parameter = dict(
#flatfield
iullumination_correction = dict(flatfield = None,
illumination_correction = dict(flatfield = None,
scaling = 'mean'),

#background removal
Expand Down Expand Up @@ -687,4 +687,4 @@ def _test():
import numpy as np
import ClearMap.Visualization.Plot3d as p3d
import ClearMap.Tests.Files as tsf
import ClearMap.ImageProcessing.Experts.Cells as cells
import ClearMap.ImageProcessing.Experts.Cells as cells