Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S Slicer
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 40
    • Merge requests 40
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Sam Horvath
  • Slicer
  • Merge requests
  • !135

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

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Andras Lasso requested to merge github/fork/lassoan/editor-small-paint-brush-size-fix into master May 23, 2014
  • Overview 3
  • Commits 1
  • Pipelines 0
  • Changes 1

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.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/lassoan/editor-small-paint-brush-size-fix