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

10
LINES

< > BotCompany Repo | #1020099 // rgbImageFromLLLDouble255

JavaX fragment (include)

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

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: 255 / 301
Version history: 3 change(s)
Referenced in: [show references]