Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1020099 // rgbImageFromLLLDouble255

JavaX fragment (include)

1  
static RGBImage rgbImageFromLLLDouble255(L<LL<Double>> l) {
2  
  int h = l(l), w = l(first(l));
3  
  RGBImage img = new(w, h);
4  
  for y to h:
5  
    for x to w: {
6  
      L<Double> pix = l.get(y).get(x);
7  
      img.setPixel(x, y, toInt(pix.get(0)), toInt(pix.get(1)), toInt(pix.get(2)));
8  
    }
9  
  ret img;
10  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020099
Snippet name: rgbImageFromLLLDouble255
Eternal ID of this version: #1020099/4
Text MD5: 12f08511728acae0eb6725c9ad030fd8
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-07 15:54:22
Source code size: 302 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 256 / 302
Version history: 3 change(s)
Referenced in: [show references]