Commit eefd4f7e authored by Andrey Filippov's avatar Andrey Filippov

same bug revealed with updated imageJ as in lwir16 branch - added explicit...

same bug revealed with updated imageJ as in lwir16 branch - added explicit .convertToColorProcessor() before casting pixels to int[]
parent b0be9975
......@@ -13109,7 +13109,7 @@ public class QuadCLTCPU {
if (debugLevel > -1) {
System.out.println("backdropPixels = "+backdropPixels+" h_margin = "+h_margin+" v_margin = "+v_margin);
}
int [] src_pixels = (int []) imp.getProcessor().getPixels();
int [] src_pixels = (int []) imp.getProcessor().convertToColorProcessor().getPixels();
int [] pixels = new int [width2* height2];
int black = noalpha ? 0 : 0xff000000;
int mask = noalpha ? 0xffffff : 0xffffffff;
......@@ -13171,7 +13171,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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment