Skip to content

Commit

Permalink
ENH: Allow display RGBA volume values in DataProbe
Browse files Browse the repository at this point in the history
  • Loading branch information
lassoan committed Oct 10, 2023
1 parent 3b4851d commit 83feea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Scripted/DataProbe/DataProbe.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def getPixelString(self, volumeNode, ijk):

# default - non label scalar volume
numberOfComponents = imageData.GetNumberOfScalarComponents()
if numberOfComponents > 3:
if numberOfComponents > 4:
return _("{numberOfComponents} components").format(numberOfComponents=numberOfComponents)
for c in range(numberOfComponents):
component = imageData.GetScalarComponentAsDouble(ijk[0], ijk[1], ijk[2], c)
Expand Down

0 comments on commit 83feea7

Please sign in to comment.