Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::VolumeNormalization Class Reference

#include <volumenormalization.h>

Public Member Functions

template<typename Callback >
 VolumeNormalization (Callback C)
 
std::shared_ptr< Volumenormalize (const Volume &volume)
 
void setNormalizeChannel (const size_t channel, const bool normalize)
 
void setNormalizeChannels (bvec4 normalize)
 
void reset ()
 

Protected Attributes

Shader shader_
 
FrameBufferObject fbo_
 

Detailed Description

GL implementation of volume normalization. The algorithm takes in a volume and normalizes its data in the selected channels to range [0, 1]. Note that this algorithm normalizes channels independently, it does not normalize a multi-channel volume in terms of vector norms!

Member Function Documentation

◆ normalize()

std::shared_ptr< Volume > inviwo::VolumeNormalization::normalize ( const Volume & volume)

Performs the normalization on the GPU.

Parameters
volumeInput volume to be normalized.
Returns
A float32 volume whose selected channels have been normalized.

◆ reset()

void inviwo::VolumeNormalization::reset ( )

Resets the normalization settings. Channel 0 is set to true, rest to false.

◆ setNormalizeChannel()

void inviwo::VolumeNormalization::setNormalizeChannel ( const size_t channel,
const bool normalize )

Sets the channel that are to be normalized. In practice, this method in-/ejects shader defines for every channel.

Parameters
channelChannel for which the normalization should be set to true or false.
normalizeBoolean value indicating whether or not the selected channel should be normalized.

◆ setNormalizeChannels()

void inviwo::VolumeNormalization::setNormalizeChannels ( bvec4 normalize)

Sets the channels that are to be normalized. In practice, this method in-/ejects shader defines for every channel.

Parameters
normalizeSet of boolean values indicating which channels to normalize.

The documentation for this class was generated from the following file: