Blender
V4.3
source
blender
freestyle
intern
stroke
QInformationMap.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
12
#include <qimage.h>
13
14
#include "InformationMap.h"
15
16
namespace
Freestyle
{
17
18
class
QInformationMap
:
public
InformationMap {
19
private
:
20
QImage _map;
// the image or a piece of image
21
22
public
:
23
QInformationMap
();
24
QInformationMap
(
const
QImage &);
25
QInformationMap
(
const
QInformationMap
&);
26
QInformationMap
&
operator=
(
const
QInformationMap
&);
27
28
// float getSmoothedPixel(int x, int y, float sigma = 0.2f);1
29
virtual
float
getMean
(
int
x,
int
y);
30
virtual
void
retrieveMeanAndVariance
(
int
x,
int
y,
float
&oMean,
float
&oVariance);
31
32
inline
const
QImage &
map
()
const
33
{
34
return
_map;
35
}
36
37
inline
void
setMap
(
const
QImage &iMap,
float
iw,
float
ih)
38
{
39
_map = iMap.copy();
40
_w = iw;
41
_h = ih;
42
}
43
44
protected
:
45
virtual
float
computeGaussian
(
int
x,
int
y);
46
};
47
48
}
/* namespace Freestyle */
Freestyle::QInformationMap
Definition
QInformationMap.h:18
Freestyle::QInformationMap::setMap
void setMap(const QImage &iMap, float iw, float ih)
Definition
QInformationMap.h:37
Freestyle::QInformationMap::QInformationMap
QInformationMap()
Freestyle::QInformationMap::operator=
QInformationMap & operator=(const QInformationMap &)
Freestyle::QInformationMap::QInformationMap
QInformationMap(const QImage &)
Freestyle::QInformationMap::getMean
virtual float getMean(int x, int y)
Freestyle::QInformationMap::QInformationMap
QInformationMap(const QInformationMap &)
Freestyle::QInformationMap::retrieveMeanAndVariance
virtual void retrieveMeanAndVariance(int x, int y, float &oMean, float &oVariance)
Freestyle::QInformationMap::map
const QImage & map() const
Definition
QInformationMap.h:32
Freestyle::QInformationMap::computeGaussian
virtual float computeGaussian(int x, int y)
Freestyle
inherits from class Rep
Definition
AppCanvas.cpp:20
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0