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

22
LINES

< > BotCompany Repo | #1032182 // IISwapAxes - swap X and Y axis

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

Libraryless. Click here for Pure Java version (4312L/24K).

sclass IISwapAxes extends Meta implements IIntegralImage {
  RegisteredReference<IIntegralImage> originalImage = new(this);
  int w, h;
  
  *() {}
  *(IIntegralImage originalImage) {
    this.originalImage.set(originalImage);
    w = originalImage.getHeight();
    h = originalImage.getWidth();
  }
  
  public int getWidth() { ret w; }
  public int getHeight() { ret h; }

  public double getIntegralValue(int x, int y, int channel) {
    ret originalImage->getIntegralValue(y, x, channel);
  }
    
  public double getIntegralValue(int x, int y) {
    ret originalImage->getIntegralValue(y, x);
  }
}

Author comment

Began life as a copy of #1031960

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032182
Snippet name: IISwapAxes - swap X and Y axis
Eternal ID of this version: #1032182/8
Text MD5: ef192ac0d890156b97dc05e2ccfd0df5
Transpilation MD5: e571f9ffd590b5295cfe08fe35cbd997
Author: stefan
Category: javax / image recognition
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-17 19:36:22
Source code size: 624 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 151 / 289
Version history: 7 change(s)
Referenced in: [show references]