Issue:
findCenterOfMaxima returns non integer center coordinates. This causes an error in detectCellShape in the voxelizePixel function, where these coordinates are used as array indices
Potential fix:
In ClearMap/ImageProcessing/MaximaDetection.py, I added a line in findCenterOfMaxima after creating the centers array (line 231)
centers = numpy.rint(centers).astype(int)
Alternatively, you could keep the non integer center coordinates and convert them to integers only when using as array indices
Reproduce:
Issue: findCenterOfMaxima returns non integer center coordinates. This causes an error in detectCellShape in the voxelizePixel function, where these coordinates are used as array indices
Potential fix: In ClearMap/ImageProcessing/MaximaDetection.py, I added a line in findCenterOfMaxima after creating the centers array (line 231)
centers = numpy.rint(centers).astype(int)
Alternatively, you could keep the non integer center coordinates and convert them to integers only when using as array indices