Blender  V3.3
QInformationMap.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
10 #include <qimage.h>
11 
12 #include "InformationMap.h"
13 
14 namespace Freestyle {
15 
16 class QInformationMap : public InformationMap {
17  private:
18  QImage _map; // the image or a piece of image
19 
20  public:
22  QInformationMap(const QImage &);
25 
26  // float getSmoothedPixel(int x, int y, float sigma = 0.2f);1
27  virtual float getMean(int x, int y);
28  virtual void retrieveMeanAndVariance(int x, int y, float &oMean, float &oVariance);
29 
30  inline const QImage &map() const
31  {
32  return _map;
33  }
34 
35  inline void setMap(const QImage &iMap, float iw, float ih)
36  {
37  _map = iMap.copy();
38  _w = iw;
39  _h = ih;
40  }
41 
42  protected:
43  virtual float computeGaussian(int x, int y);
44 };
45 
46 } /* namespace Freestyle */
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
void setMap(const QImage &iMap, float iw, float ih)
QInformationMap(const QImage &)
virtual float getMean(int x, int y)
QInformationMap(const QInformationMap &)
const QImage & map() const
QInformationMap & operator=(const QInformationMap &)
virtual void retrieveMeanAndVariance(int x, int y, float &oMean, float &oVariance)
virtual float computeGaussian(int x, int y)
inherits from class Rep
Definition: AppCanvas.cpp:18
static unsigned x[3]
Definition: RandGen.cpp:73