Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alta
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alta
alta
Commits
113fcfe2
Commit
113fcfe2
authored
Nov 14, 2013
by
Laurent Belcour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating the documentation to handle software in the ALTA library
parent
5da4b9ce
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
5 deletions
+33
-5
documents/mainpage.dox
documents/mainpage.dox
+7
-3
sources/softs/brdf2brdf/main.cpp
sources/softs/brdf2brdf/main.cpp
+11
-0
sources/softs/brdf2gnuplot/main.cpp
sources/softs/brdf2gnuplot/main.cpp
+1
-1
sources/softs/data2brdf/main.cpp
sources/softs/data2brdf/main.cpp
+13
-0
sources/softs/data2gnuplot/main.cpp
sources/softs/data2gnuplot/main.cpp
+1
-1
No files found.
documents/mainpage.dox
View file @
113fcfe2
...
...
@@ -51,12 +51,15 @@ dependencies, please refer to \ref install.
After compiling the different command line tools and associated plugins,
go to the sources directory and launch this command line (for Linux users only):
\verbatim
./build/data2brdf --input ../data/1d/Kirby.dat --output Kirby.brdf --fitter ./build/librational_fitter_eigen.so
./build/data2brdf --input ../data/1d/Kirby
2/Kirby2
.dat --output Kirby.brdf --fitter ./build/librational_fitter_eigen.so
\endverbatim
Tada ! You have produced your first BRDF fit.
Tada ! You have produced your first fit. The produced output is a 1D rational
function, using a monomial basis, interpolating the
<a href="http://www.itl.nist.gov/div898/strd/nls/data/kirby2.shtml">Kirby 2</a>
dataset.
The
<i>data2brdf</i> is one of many \a
commands available in ALTA. It
The
\a data2brdf is one of many \ref
commands available in ALTA. It
allows to perform a fitting procedure by converting a \ref data object into a
brdf object (also named \ref function).
...
...
@@ -79,6 +82,7 @@ There are many ways in which you can extend ALTA. Please refer to
\defgroup core
\defgroup commands
\defgroup plugins
\defgroup softs
*/
sources/softs/brdf2brdf/main.cpp
View file @
113fcfe2
/*! \package brdf2brdf
* \ingroup commands
* \brief
* This command exports a \ref function object to software specific file.
* \details
* <h3>Parameters</h3>
* <ul>
* <li><b>\-\-input <i>filename</i></b> ALTA function file to be loaded.
* </li>
* </ul>
*/
#include <core/args.h>
#include <core/function.h>
#include <core/plugins_manager.h>
...
...
sources/softs/brdf2gnuplot/main.cpp
View file @
113fcfe2
...
...
@@ -58,7 +58,7 @@ int main(int argc, char** argv)
{
std
::
cout
<<
"<<INFO>> Using data file
\"
"
<<
args
[
"data"
]
<<
"
\"
"
<<
std
::
endl
;
d
=
plugins_manager
::
get_data
()
;
d
->
load
(
args
[
"data"
])
;
d
->
load
(
args
[
"data"
]
,
args
)
;
// Print the distance to the data to check if it correspond to the value
// computed prior.
...
...
sources/softs/data2brdf/main.cpp
View file @
113fcfe2
/*! \package data2brdf
* \ingroup commands
* \brief
* This command allows to convert a \ref data object to a \ref function object.
* \details
* <h3>Parameters</h3>
* <ul>
* <li><b>\-\-input <i>filename</i></b> data file to be loaded uwing the data
* plugin specified by the <b>\-\-data <i>filename</i></b> option. If no
* plugin is specified, the data file will be loaded using a \ref
* vertical_segment data object.</li>
* </ul>
*/
#include <core/args.h>
#include <core/data.h>
#include <core/function.h>
...
...
sources/softs/data2gnuplot/main.cpp
View file @
113fcfe2
...
...
@@ -34,7 +34,7 @@ int main(int argc, char** argv)
}
data
*
d
=
plugins_manager
::
get_data
(
args
[
"data"
])
;
d
->
load
(
args
[
"input"
]);
d
->
load
(
args
[
"input"
]
,
args
);
// Create output file
std
::
ofstream
file
(
args
[
"output"
].
c_str
(),
std
::
ios_base
::
trunc
);
...
...
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