imagej / ImageJ

Public domain software for processing and analyzing scientific images
http://imagej.org
Other
576 stars 227 forks source link

32-bit hyperstacks are not Z-projected correctly when using average value mode #200

Open Sethur opened 1 year ago

Sethur commented 1 year ago

In ImageJ 1.54c7 (and probably previous versions), 32-bit hyperstacks are not projected properly when using average value mode. This issue does not happen for 16- or 8-bit hyperstacks.

The reason is that the ZProjector class specifically calls doAverageFloatProjection() in case of 32-bit images and an average projection, but doAverageFloatProjection() ignores the increment that was previously calculated for hyperstacks.

Pull request #199 fixes this issue.