Skip to content
Snippets Groups Projects
Commit a7e057c9 authored by heyde's avatar heyde
Browse files

fixed bug of maximum intensity projection caused by uninitialized value

parent 453d132d
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ public class MaximumIntensityProjectionInterpreter extends AbstractVolumeInterpr
return new String[]{
"#line "+Thread.currentThread().getStackTrace()[1].getLineNumber() +" 4",
"float maxIntensity = 0;",
"vec4 maxIntensityColor;",
"vec4 maxIntensityColor = vec4(0.0);",
"vec4 "+getFunctionName()+"(vec4 c_in, vec4 c, float vm1, float v ){",
" if(vm1 > v){",
" if(vm1 > maxIntensity){",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment