Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Protected Member Functions | List of all members
BIAS::GpuImageFilter Class Reference

basic image filter on the gpu More...

#include <OpenGLFramework/SpecializedBatches/GpuImageFilter.hh>

+ Inheritance diagram for BIAS::GpuImageFilter:
+ Collaboration diagram for BIAS::GpuImageFilter:

Public Types

enum  filtertype { none, mean, median, gauss }
 

Public Member Functions

void ActivateFixedFunctionPipeline ()
 
glfShaderProgramCreateFragmentShaderProgram (const std::string &fragmentShaderCode)
 
glfShaderProgramCreateFragmentShaderProgramFromFile (const std::string &fragmentShaderPath)
 
void FilterCp (ImageBase &in, ImageBase &out, enum ImageBase::EStorageType type, int rad, float threshold)
 
void FilterGauss (ImageBase &in, ImageBase &out, enum ImageBase::EStorageType type, int rad, float threshold)
 
void FilterMean (ImageBase &in, ImageBase &out, enum ImageBase::EStorageType type, int rad, float threshold)
 
void FilterMedian (ImageBase &in, ImageBase &out, enum ImageBase::EStorageType type, int rad, float threshold, bool planar)
 
glfFramebufferObjectGetRenderTarget ()
 
glfTexture2DGetTextureFromDefaultRenderTarget ()
 
int GetTextureFromDefaultRenderTarget (ImageBase &texture)
 
unsigned int GetViewportHeight ()
 
unsigned int GetViewportWidth ()
 
glfTexture2DGetZBufferFromDefaultRenderTarget ()
 
 GpuImageFilter ()
 
void SetDefaultFloatRenderTarget (unsigned int width, unsigned height)
 
void SetDefaultRenderTarget (unsigned int width, unsigned height, GLenum internalFormat=GL_LUMINANCE32F_ARB)
 
void SetDefaultRGBRenderTarget (unsigned int width, unsigned height)
 
void SetRenderTarget (glfFramebufferObject *renderTarget)
 
void SetViewPort (unsigned int width, unsigned int height)
 
virtual ~GpuImageFilter ()
 

Protected Member Functions

glfBatchGetBatch_ ()
 
glfDepthBufferModeGetDepthBufferMode_ ()
 
glfElementBufferGetElementBuffer_ ()
 
glfMatrixGetModelViewMatrix_ ()
 
glfMatrixGetProjectionMatrix_ ()
 
glfShaderGetShader ()
 
glfShaderProgramGetShaderProgram_ ()
 
glfVertexBufferGetVertexBuffer_ ()
 
glfViewportGetViewport_ ()
 
void InitBatch_ ()
 
void InitPrimitiveData_ ()
 
void InitVertexTransformation_ ()
 

Detailed Description

basic image filter on the gpu

Author
djung

Definition at line 25 of file GpuImageFilter.hh.

Member Enumeration Documentation

Enumerator
none 
mean 
median 
gauss 

Definition at line 28 of file GpuImageFilter.hh.

Constructor & Destructor Documentation

GpuImageFilter::GpuImageFilter ( )

Definition at line 15 of file GpuImageFilter.cpp.

GpuImageFilter::~GpuImageFilter ( )
virtual

Definition at line 335 of file GpuImageFilter.cpp.

Member Function Documentation

void BIAS::PerPixelProcessingBase::ActivateFixedFunctionPipeline ( )
inlineinherited

Definition at line 88 of file PerPixelProcessingBase.hh.

References BIAS::glfScreen::GetInstance().

glfShaderProgram * PerPixelProcessingBase::CreateFragmentShaderProgram ( const std::string &  fragmentShaderCode)
inherited
glfShaderProgram * PerPixelProcessingBase::CreateFragmentShaderProgramFromFile ( const std::string &  fragmentShaderPath)
inherited
void GpuImageFilter::FilterCp ( ImageBase in,
ImageBase out,
enum ImageBase::EStorageType  type,
int  rad,
float  threshold 
)

Definition at line 383 of file GpuImageFilter.cpp.

void GpuImageFilter::FilterGauss ( ImageBase in,
ImageBase out,
enum ImageBase::EStorageType  type,
int  rad,
float  threshold 
)

Definition at line 354 of file GpuImageFilter.cpp.

void GpuImageFilter::FilterMean ( ImageBase in,
ImageBase out,
enum ImageBase::EStorageType  type,
int  rad,
float  threshold 
)

Definition at line 348 of file GpuImageFilter.cpp.

void GpuImageFilter::FilterMedian ( ImageBase in,
ImageBase out,
enum ImageBase::EStorageType  type,
int  rad,
float  threshold,
bool  planar 
)

Definition at line 341 of file GpuImageFilter.cpp.

glfBatch* BIAS::PerPixelProcessingBase::GetBatch_ ( )
inlineprotectedinherited

Definition at line 157 of file PerPixelProcessingBase.hh.

Referenced by BIAS::SeparableBilateralFilter::Draw().

glfDepthBufferMode* BIAS::PerPixelProcessingBase::GetDepthBufferMode_ ( )
inlineprotectedinherited

Definition at line 172 of file PerPixelProcessingBase.hh.

Referenced by BIAS::SeparableBilateralFilter::Init().

glfElementBuffer* BIAS::PerPixelProcessingBase::GetElementBuffer_ ( )
protectedinherited
glfMatrix* BIAS::PerPixelProcessingBase::GetModelViewMatrix_ ( )
protectedinherited
glfMatrix* BIAS::PerPixelProcessingBase::GetProjectionMatrix_ ( )
protectedinherited
glfFramebufferObject* BIAS::PerPixelProcessingBase::GetRenderTarget ( )
inlineinherited

Definition at line 129 of file PerPixelProcessingBase.hh.

glfShader* BIAS::PerPixelProcessingBase::GetShader ( )
inlineprotectedinherited

Definition at line 176 of file PerPixelProcessingBase.hh.

glfShaderProgram* BIAS::PerPixelProcessingBase::GetShaderProgram_ ( )
inlineprotectedinherited
glfTexture2D* BIAS::PerPixelProcessingBase::GetTextureFromDefaultRenderTarget ( )
inlineinherited

Definition at line 115 of file PerPixelProcessingBase.hh.

int BIAS::PerPixelProcessingBase::GetTextureFromDefaultRenderTarget ( ImageBase texture)
inlineinherited

Definition at line 119 of file PerPixelProcessingBase.hh.

glfVertexBuffer* BIAS::PerPixelProcessingBase::GetVertexBuffer_ ( )
protectedinherited
glfViewport* BIAS::PerPixelProcessingBase::GetViewport_ ( )
inlineprotectedinherited

Definition at line 169 of file PerPixelProcessingBase.hh.

unsigned int BIAS::PerPixelProcessingBase::GetViewportHeight ( )
inlineinherited

Definition at line 60 of file PerPixelProcessingBase.hh.

unsigned int BIAS::PerPixelProcessingBase::GetViewportWidth ( )
inlineinherited

Definition at line 57 of file PerPixelProcessingBase.hh.

glfTexture2D* BIAS::PerPixelProcessingBase::GetZBufferFromDefaultRenderTarget ( )
inlineinherited

Definition at line 112 of file PerPixelProcessingBase.hh.

void BIAS::PerPixelProcessingBase::InitBatch_ ( )
inlineprotectedinherited

Definition at line 134 of file PerPixelProcessingBase.hh.

Referenced by BIAS::SeparableBilateralFilter::Init().

void BIAS::PerPixelProcessingBase::InitPrimitiveData_ ( )
inlineprotectedinherited
void BIAS::PerPixelProcessingBase::InitVertexTransformation_ ( )
inlineprotectedinherited

Definition at line 152 of file PerPixelProcessingBase.hh.

void PerPixelProcessingBase::SetDefaultFloatRenderTarget ( unsigned int  width,
unsigned  height 
)
inherited

Definition at line 96 of file PerPixelProcessingBase.cpp.

void PerPixelProcessingBase::SetDefaultRenderTarget ( unsigned int  width,
unsigned  height,
GLenum  internalFormat = GL_LUMINANCE32F_ARB 
)
inherited

Definition at line 44 of file PerPixelProcessingBase.cpp.

References BIAS::glfException::GetMessageString().

void PerPixelProcessingBase::SetDefaultRGBRenderTarget ( unsigned int  width,
unsigned  height 
)
inherited

Definition at line 101 of file PerPixelProcessingBase.cpp.

void BIAS::PerPixelProcessingBase::SetRenderTarget ( glfFramebufferObject renderTarget)
inlineinherited
void BIAS::PerPixelProcessingBase::SetViewPort ( unsigned int  width,
unsigned int  height 
)
inlineinherited

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