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

12
LINES

< > BotCompany Repo | #1033306 // BWIntegralImage_luminosity - use best rgb-to-grayscale method

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (8774L/52K).

final sclass BWIntegralImage_luminosity extends BWIntegralImage {
  *() {}
  *(File f) { super(f); }
  *(MakesBufferedImage img) { super(img); }
  *(BufferedImage image) { super(image); }
  *(GrabbableIntPixels gp) { super(gp); }
  *(BWImage img) { super(img); }
  
  int packedToBrightness(int packed) {
    ret rgbToLuminosity(packed);
  }
}

Author comment

Began life as a copy of #1019595

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033306
Snippet name: BWIntegralImage_luminosity - use best rgb-to-grayscale method
Eternal ID of this version: #1033306/1
Text MD5: ad8c9e7fe896049ae1dc85dfefe56a65
Transpilation MD5: fe1609596f4b941a0bbfeefdaa037cd1
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-21 01:17:49
Source code size: 354 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 153 / 246
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)