Skip to content

Commit

Permalink
Merge pull request #135 from CellProfiler/issues/4666_425
Browse files Browse the repository at this point in the history
Fix 3D object loading
  • Loading branch information
bethac07 authored Dec 13, 2022
2 parents 07443c7 + 39edcec commit bbbf3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cellprofiler_core/modules/namesandtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2163,7 +2163,7 @@ def add_objects(self, workspace, name, stack):
indexer = numpy.zeros(nobjects + 1, int)
indexer[unique_labels] =contig_labels
image.set_image(skimage.morphology.label(indexer[labels]), convert=False)
if shape[2] == 1 or volume:
if shape[2] == 1:
o.segmented = image.pixel_data[:, :, 0]
add_object_location_measurements(
workspace.measurements, name, o.segmented, o.count
Expand Down

0 comments on commit bbbf3a2

Please sign in to comment.