Notice to GitKraken users: A vulnerability has been found in the SSH key generation of GitKraken versions 7.6.0 to 8.0.0 ( If you use GitKraken and have generated a SSH key using one of these versions, please remove it both from your local workstation and from your LRZ GitLab profile.

21.10.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 74f8d82a authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

Fixed GlImageResampler not adjusting the voxel size of the resized image

parent 305c8832
......@@ -104,7 +104,8 @@ namespace campvis {
// put resulting image into DataContainer
ImageData* id = new ImageData(3, resampledSize, 1);
ImageRepresentationGL::create(id, resultTexture);
const ImageMappingInformation& imi = img->getParent()->getMappingInformation();
id->setMappingInformation(ImageMappingInformation(img->getSize(), imi.getOffset(), imi.getVoxelSize() / p_resampleScale.getValue(), imi.getRealWorldMapping()));
data.addData(p_outputImage.getValue(), id);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment