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
00d0fae7
Commit
00d0fae7
authored
Aug 12, 2023
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upgraded imagej and added explicit .convertToColorProcessor() before
casting float pixels to int[]
parent
7180569b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
pom.xml
pom.xml
+2
-1
QuadCLT.java
src/main/java/com/elphel/imagej/tileprocessor/QuadCLT.java
+1
-1
QuadCLTCPU.java
...main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
+1
-1
No files found.
pom.xml
View file @
00d0fae7
...
...
@@ -51,7 +51,8 @@
<groupId>
net.imagej
</groupId>
<artifactId>
ij
</artifactId>
<!-- <version>1.52e</version> -->
<version>
1.53j
</version>
<!-- <version>1.53j</version> -->
<version>
1.54f
</version>
</dependency>
<dependency>
<groupId>
org.jcuda
</groupId>
...
...
src/main/java/com/elphel/imagej/tileprocessor/QuadCLT.java
View file @
00d0fae7
...
...
@@ -3630,7 +3630,7 @@ public class QuadCLT extends QuadCLTCPU {
float
[][]
texture_rgba
=
isMonochrome
()
?
(
new
float
[][]
{
texture_img
[
0
],
texture_img
[
1
]})
:
(
new
float
[][]
{
texture_img
[
0
],
texture_img
[
1
],
texture_img
[
2
],
texture_img
[
3
]});
boolean
toRGB
=
!
isLwir
()
||
colorProcParameters
.
lwir_pseudocolor
;
ImagePlus
imp_texture_bgnd
=
linearStackToColor
(
ImagePlus
imp_texture_bgnd
=
linearStackToColor
(
// floatProcessor
clt_parameters
,
colorProcParameters
,
rgbParameters
,
...
...
src/main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
View file @
00d0fae7
...
...
@@ -13170,7 +13170,7 @@ public class QuadCLTCPU {
// int v_margin = (int) Math.round((backdropPixels - height)/2);
// int width2 = width + 2 * h_margin;
// int height2 = height + 2 * v_margin;
int
[]
src_pixels
=
(
int
[])
imp
.
getProcessor
().
getPixels
();
int
[]
src_pixels
=
(
int
[])
imp
.
getProcessor
().
convertToColorProcessor
().
getPixels
();
int
[]
pixels
=
new
int
[
out_width
*
out_height
];
int
black
=
noalpha
?
0
:
0xff000000
;
int
mask
=
noalpha
?
0xffffff
:
0xffffffff
;
...
...
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