R library for structural neuroimaging. Provides high-level functions to access (read and write) and visualize surface-based brain morphometry data for individuals and groups.
Other
65
stars
13
forks
source link
Fix white stripes in custom background of images exported with vis.export.from.coloredmeshes #21
Describe the bug
2 horizontal white stripes occur in custom background color when using the background_color parameter of vis.export.from.coloredmeshes
Expected behavior
The background has the requested background color, no stripes.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Operating System [e.g. MacOS10.13, or Ubuntu 20.04]: Ubuntu 18.04
R version (output of R --version in system shell): 3.6.1
fsbrain version (output of packageVersion('fsbrain') in R): 0.4.3-dev from GitHub master
Additional context
This most likely occurs because of incorrect use of magick::image_append, which requires that images have the same height/width. Apparently the function still does something, but it first pads the smaller image with a non-configurable color (white). We may need to pad the smaller image manually with the background color before passing the images to magic::image_append to fix this bug.
Describe the bug 2 horizontal white stripes occur in custom background color when using the background_color parameter of
vis.export.from.coloredmeshes
To Reproduce
Expected behavior The background has the requested background color, no stripes.
Screenshots If applicable, add screenshots to help explain your problem.
Environment:
R --version
in system shell): 3.6.1packageVersion('fsbrain')
in R): 0.4.3-dev from GitHub masterAdditional context This most likely occurs because of incorrect use of magick::image_append, which requires that images have the same height/width. Apparently the function still does something, but it first pads the smaller image with a non-configurable color (white). We may need to pad the smaller image manually with the background color before passing the images to magic::image_append to fix this bug.