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
061d29e3
Commit
061d29e3
authored
Aug 02, 2018
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug of NaN-s creeping into 8-bit ML files
parent
d9ea7668
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
TwoQuadCLT.java
src/main/java/TwoQuadCLT.java
+1
-1
No files found.
src/main/java/TwoQuadCLT.java
View file @
061d29e3
...
@@ -4660,7 +4660,7 @@ if (debugLevel > -100) return true; // temporarily !
...
@@ -4660,7 +4660,7 @@ if (debugLevel > -100) return true; // temporarily !
int
iv
=
(
int
)
Math
.
round
(
k
*(
ml_data
[
nl
][
i
]-
soft_mn
));
int
iv
=
(
int
)
Math
.
round
(
k
*(
ml_data
[
nl
][
i
]-
soft_mn
));
if
(
iv
<
0
)
iv
=
0
;
if
(
iv
<
0
)
iv
=
0
;
else
if
(
iv
>
254
)
iv
=
254
;
else
if
(
iv
>
254
)
iv
=
254
;
iml_data
[
nl
][
i
]
=
(
byte
)
iv
;
// (iv - 127); // NaN will stay 0;
iml_data
[
nl
][
i
]
=
(
byte
)
(
iv
+
1
)
;
// (iv - 127); // NaN will stay 0;
}
}
}
}
}
}
...
...
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