Skip to content

ENH: Editor: paint using pixel mode if brush size is too small

For volumes with anisotropic spacing the minimum brush size in the paint tool may be smaller than the pixel size. When a the brush size is smaller than the pixel size then no pixels are filled when the user clicks on the image, which is very confusing for the user.

How to reproduce the error:

  • Load MRHead sample volume
  • Change the Z spacing to 5mm
  • Go to the Editor module, choose the paint tool
  • Set the brush size to minimum
  • Paint on the red slice viewer => ERROR: no pixels are filled

Implemented solution: added a check in the PaintEffect tool so that if the brush size is too small then pixels are painted using paintPixel mode.

Merge request reports