Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
de42caf9
Commit
de42caf9
authored
Aug 04, 2010
by
Sebastian Eichelbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DOC][STYLE]
parent
2fa8c39e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
src/dataHandler/WDataTexture3D.cpp
src/dataHandler/WDataTexture3D.cpp
+2
-1
src/dataHandler/datastructures/WValueSetHistogram.cpp
src/dataHandler/datastructures/WValueSetHistogram.cpp
+3
-1
src/dataHandler/test/WValueSetBase_test.h
src/dataHandler/test/WValueSetBase_test.h
+0
-1
src/modules/histogramEqualization/WMHistogramEqualization.cpp
...modules/histogramEqualization/WMHistogramEqualization.cpp
+2
-3
No files found.
src/dataHandler/WDataTexture3D.cpp
View file @
de42caf9
...
...
@@ -46,7 +46,8 @@ WDataTexture3D::WDataTexture3D( boost::shared_ptr<WValueSetBase> valueSet, boost
m_scale
(
m_maxValue
-
m_minValue
)
{
// initialize members
wlog
::
debug
(
"WDataTexture3D"
)
<<
"Texture scaling information for data in ["
<<
m_minValue
<<
", "
<<
m_maxValue
<<
"]: scaling factor="
<<
m_scale
;
wlog
::
debug
(
"WDataTexture3D"
)
<<
"Texture scaling information for data in ["
<<
m_minValue
<<
", "
<<
m_maxValue
<<
"]: scaling factor="
<<
m_scale
;
}
WDataTexture3D
::~
WDataTexture3D
()
...
...
src/dataHandler/datastructures/WValueSetHistogram.cpp
View file @
de42caf9
...
...
@@ -23,6 +23,7 @@
//---------------------------------------------------------------------------
#include <cstring> // memset()
#include <utility>
#include "../../common/WAssert.h"
#include "../../common/WLimits.h"
...
...
@@ -117,7 +118,8 @@ WValueSetHistogram::WValueSetHistogram( const WValueSetHistogram& histogram, siz
}
WAssert
(
buckets
>
1
,
"WValueSetHistogram::WValueSetHistogram : number of buckets needs to be larger than 1."
);
WAssert
(
buckets
<
m_nInitialBuckets
,
"WValueSetHistogram::WValueSetHistogram : number of buckets needs to be smaller than the initial bucket count."
);
WAssert
(
buckets
<
m_nInitialBuckets
,
"WValueSetHistogram::WValueSetHistogram : number of buckets needs to be smaller than the initial bucket count."
);
// number of elements in the new mapped histogram = division + (round up)
m_nMappedBuckets
=
buckets
-
1
;
...
...
src/dataHandler/test/WValueSetBase_test.h
View file @
de42caf9
...
...
@@ -85,7 +85,6 @@ public:
/**
* Get the value.
*
* \param i The position of the value.
* \return The value at position i.
*/
virtual
double
getScalarDouble
(
size_t
/* i */
)
const
...
...
src/modules/histogramEqualization/WMHistogramEqualization.cpp
View file @
de42caf9
...
...
@@ -88,8 +88,8 @@ void WMHistogramEqualization::properties()
m_propCondition
=
boost
::
shared_ptr
<
WCondition
>
(
new
WCondition
()
);
// enable histogram equalization?
m_equalize
=
m_properties
->
addProperty
(
"Equalize Histogram"
,
"If true, the dataset's histogram will be equalized which ensures that the
\
cumulative histogram is a linear function."
,
true
,
m_propCondition
);
m_equalize
=
m_properties
->
addProperty
(
"Equalize Histogram"
,
"If true, the dataset's histogram will be equalized which ensures that the
"
+
"
cumulative histogram is a linear function."
,
true
,
m_propCondition
);
// call WModule's initialization
WModule
::
properties
();
...
...
@@ -136,7 +136,6 @@ void WMHistogramEqualization::moduleMain()
// Grab the histogram
boost
::
shared_ptr
<
const
WValueSetHistogram
>
hist
=
dataSet
->
getHistogram
();
debugLog
()
<<
*
hist
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment