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

12
LINES

< > BotCompany Repo | #1034527 // ScaledBWImageFromBWIntegralImage - improved meta-aware procedure

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

Libraryless. Click here for Pure Java version (13290L/77K).

srecord noeq ScaledBWImageFromBWIntegralImage(IBWIntegralImage img, int w, int h) is ScalingImageOpResult<IBWIntegralImage> {
  BWImage result;
  
  run {
    byte[] pixels = img cast BWIntegralImage
      ? scaledGrayBytesFromBWIntegralImage(img, w, h)
      : scaledGrayBytesFromBWIntegralImage(img, w, h);
    result = new BWImage(w, h, pixels);
  }
  
  public IBWIntegralImage scalingSrcImage() { ret img; }
}

Author comment

Began life as a copy of #1033935

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034527
Snippet name: ScaledBWImageFromBWIntegralImage - improved meta-aware procedure
Eternal ID of this version: #1034527/5
Text MD5: 83cc87ab56fba8b43799035411283e11
Transpilation MD5: 54b396a3d31e6b32ee1432e62780e126
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-17 18:03:03
Source code size: 425 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 153 / 270
Version history: 4 change(s)
Referenced in: [show references]