Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
CAMP
campvis-public
Commits
74f8d82a
Commit
74f8d82a
authored
Dec 13, 2013
by
Christian Schulte zu Berge
Browse files
Fixed GlImageResampler not adjusting the voxel size of the resized image
parent
305c8832
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/preprocessing/processors/glimageresampler.cpp
View file @
74f8d82a
...
...
@@ -104,7 +104,8 @@ namespace campvis {
// put resulting image into DataContainer
ImageData
*
id
=
new
ImageData
(
3
,
resampledSize
,
1
);
ImageRepresentationGL
::
create
(
id
,
resultTexture
);
id
->
setMappingInformation
(
img
->
getParent
()
->
getMappingInformation
());
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
);
tgt
::
TextureUnit
::
setZeroUnit
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment