Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
alta
alta
Commits
3ae862f9
Commit
3ae862f9
authored
Jun 29, 2017
by
Laurent Belcour
Browse files
[Fix] Correction for the output of UTIA data files
parent
8d794d25
Changes
1
Hide whitespace changes
Inline
Side-by-side
sources/plugins/data_io/utia.cpp
View file @
3ae862f9
...
...
@@ -131,7 +131,7 @@ public:
for
(
int
i
=
0
;
i
<
H
;
++
i
)
for
(
int
j
=
0
;
j
<
W
;
++
j
){
int
indexUTIA
=
i
*
W
+
j
;
int
indexEXR
=
(
H
-
i
-
1
)
*
W
+
j
;
int
indexEXR
=
i
*
W
+
j
;
temp
[
3
*
indexEXR
+
0
]
=
Bd
[
indexUTIA
+
0
*
nPerPlane
];
temp
[
3
*
indexEXR
+
1
]
=
Bd
[
indexUTIA
+
1
*
nPerPlane
];
temp
[
3
*
indexEXR
+
2
]
=
Bd
[
indexUTIA
+
2
*
nPerPlane
];
...
...
@@ -296,9 +296,9 @@ public:
}
virtual
void
set
(
int
i
,
const
vec
&
x
)
{
assert
(
x
.
size
()
==
parametrization
().
dimY
());
const
vec
&
y
=
x
.
tail
(
parametrization
().
dimY
());
for
(
int
isp
=
0
;
isp
<
planes
;
++
isp
)
{
Bd
[
isp
*
nPerPlane
+
i
]
=
x
[
isp
];
Bd
[
isp
*
nPerPlane
+
i
]
=
y
[
isp
];
}
}
...
...
@@ -308,7 +308,9 @@ public:
ALTA_DLL_EXPORT
data
*
provide_data
(
size_t
size
,
const
parameters
&
params
,
const
arguments
&
)
{
return
new
UTIA
(
params
);
return
new
UTIA
(
alta
::
parameters
(
4
,
3
,
params
::
SPHERICAL_TL_PL_TV_PV
,
params
::
RGB_COLOR
));
}
ALTA_DLL_EXPORT
data
*
load_data
(
std
::
istream
&
input
,
const
arguments
&
args
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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