Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BioImage Informatics
MinCostSurface_Projection
Commits
87e96a6b
Commit
87e96a6b
authored
Oct 09, 2019
by
HongKee Moon
Browse files
Refactoring offset IntervalView creation
parent
8bb45555
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/mpicbg/scf/mincostsurface/img_utils.java
View file @
87e96a6b
...
...
@@ -261,14 +261,14 @@ public class img_utils {
@Override
public
void
run
()
{
IntervalView
<
T
>
excerptIntervalView
=
createIntervaView
(
excerpt
,
offset
[
finalI
],
unit
);
IntervalView
<
T
>
excerptIntervalView
=
createInterva
l
View
(
excerpt
,
offset
[
finalI
],
unit
);
RandomAccess
<
T
>
randomAccess
=
excerptIntervalView
.
randomAccess
();
Cursor
<
T
>
excerpt_cursor
=
excerptIntervalView
.
cursor
();
IntervalView
<
T
>
intervalView
=
createIntervaView
(
input
,
inputOffset
[
finalI
],
unit
);
IntervalView
<
T
>
intervalView
=
createInterva
l
View
(
input
,
inputOffset
[
finalI
],
unit
);
RealRandomAccess
<
T
>
inputx_Real
=
Views
.
interpolate
(
Views
.
extendBorder
(
intervalView
),
NLinterp_factory
).
realRandomAccess
();
IntervalView
<
U
>
depthMapIntervalView
=
createIntervaView
(
depthMap
,
depthMapOffset
[
finalI
],
unit
);
IntervalView
<
U
>
depthMapIntervalView
=
createInterva
l
View
(
depthMap
,
depthMapOffset
[
finalI
],
unit
);
RandomAccess
<
U
>
depthMapx
=
depthMapIntervalView
.
randomAccess
();
float
z_map
;
...
...
@@ -293,7 +293,7 @@ public class img_utils {
return
excerpt
;
}
static
<
T
>
IntervalView
<
T
>
createIntervaView
(
Img
<
T
>
img
,
long
[]
offset
,
long
unit
)
{
private
static
<
T
>
IntervalView
<
T
>
createInterva
l
View
(
Img
<
T
>
img
,
long
[]
offset
,
long
unit
)
{
long
[]
max
=
new
long
[
img
.
numDimensions
()];
img
.
dimensions
(
max
);
max
[
1
]
=
unit
;
...
...
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