Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
imagej-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
imagej-elphel
Commits
51fc9a60
Commit
51fc9a60
authored
Jan 24, 2023
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trimming for low disparity difference (far objects) by tone
(temperature).
parent
df789de8
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1292 additions
and
715 deletions
+1292
-715
CLTParameters.java
src/main/java/com/elphel/imagej/cameras/CLTParameters.java
+95
-6
QuadCLTCPU.java
...main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
+4
-2
TexturedModel.java
...n/java/com/elphel/imagej/tileprocessor/TexturedModel.java
+1192
-706
TileCluster.java
...ain/java/com/elphel/imagej/tileprocessor/TileCluster.java
+1
-1
No files found.
src/main/java/com/elphel/imagej/cameras/CLTParameters.java
View file @
51fc9a60
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
View file @
51fc9a60
...
...
@@ -7190,6 +7190,7 @@ public class QuadCLTCPU {
public
static
void
umTextures
(
final
double
[][][]
textures
,
// [nslices][nchn][i]
final
int
width
,
final
boolean
ignore_alpha
,
final
double
um_sigma
,
final
double
um_weight
){
if
((
textures
==
null
)
||
(
textures
.
length
==
0
))
{
...
...
@@ -7222,7 +7223,7 @@ public class QuadCLTCPU {
for
(
int
i
=
0
;
i
<
texture
.
length
;
i
++)
{
texture
[
i
]
=
texture_orig
[
i
]
-
um_weight
*
texture
[
i
];
}
if
(
has_alpha
)
{
if
(
has_alpha
&&
!
ignore_alpha
)
{
for
(
int
i
=
0
;
i
<
texture
.
length
;
i
++)
if
(
texture_alpha
[
i
]
<=
0.0
){
texture
[
i
]
=
0.0
;
}
...
...
@@ -7323,6 +7324,7 @@ public class QuadCLTCPU {
}
public
static
void
applyTexturesNormHist
(
final
boolean
ignore_alpha
,
final
double
[][][]
textures
,
// [nslices][nchn][i]
final
double
[]
min_max
,
final
double
[]
inv_table
)
...
...
@@ -7341,7 +7343,7 @@ public class QuadCLTCPU {
threads
[
ithread
]
=
new
Thread
()
{
public
void
run
()
{
for
(
int
npix
=
ai
.
getAndIncrement
();
npix
<
texture
.
length
;
npix
=
ai
.
getAndIncrement
())
{
if
(!
has_alpha
||
(
texture_alpha
[
npix
]
>
0.0
))
{
if
(!
Double
.
isNaN
(
texture
[
npix
])
&&
(
ignore_alpha
||
!
has_alpha
||
(
texture_alpha
[
npix
]
>
0.0
)
))
{
double
rel_in
=
(
texture
[
npix
]
-
min_max
[
0
])
/
range
;
if
(
rel_in
<
0.0
)
{
rel_in
=
0.0
;
...
...
src/main/java/com/elphel/imagej/tileprocessor/TexturedModel.java
View file @
51fc9a60
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/tileprocessor/TileCluster.java
View file @
51fc9a60
...
...
@@ -269,7 +269,7 @@ class TileCluster{
return
sub_indices
;
}
}
public
void
resetClusterIndex
()
{
// to rebuild cluster index from disparity
public
void
resetClusterIndex
()
{
// to rebuild cluster index from disparity
NOT USED
this
.
cluster_index
=
null
;
}
public
int
[]
getClusterIndex
()
{
// (Now not) just a debug feature, no need to optimize?
...
...
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