Inviwo 0.9.12-pre
Inviwo documentation
|
#include <volumenormalization.h>
Public Member Functions | |
template<typename Callback > | |
VolumeNormalization (Callback C) | |
std::shared_ptr< Volume > | normalize (const Volume &volume) |
void | setNormalizeChannel (const size_t channel, const bool normalize) |
void | setNormalizeChannels (bvec4 normalize) |
void | reset () |
Protected Attributes | |
Shader | shader_ |
FrameBufferObject | fbo_ |
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!
Performs the normalization on the GPU.
volume | Input volume to be normalized. |
void inviwo::VolumeNormalization::reset | ( | ) |
Resets the normalization settings. Channel 0 is set to true, rest to false.
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.
channel | Channel for which the normalization should be set to true or false. |
normalize | Boolean value indicating whether or not the selected channel should be normalized. |
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.
normalize | Set of boolean values indicating which channels to normalize. |