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

9
LINES

< > BotCompany Repo | #1005928 // bwImageSectionsIdentical

JavaX fragment (include)

static bool bwImageSectionsIdentical(BWImage big, BWImage pat, int x, int y) {
  int wp = pat.getWidth(), hp = pat.getHeight();
  int w = big.getWidth(), h = big.getHeight();
  for (int yy = 0; yy < hp; yy++)
    for (int xx = 0; xx < wp; xx++)
      if (big.getByte(x+xx, y+yy) != pat.getByte(xx, yy))
        false;
  true;
}

Author comment

Began life as a copy of #1005919

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005928
Snippet name: bwImageSectionsIdentical
Eternal ID of this version: #1005928/1
Text MD5: 0b4e096f54a743a1df0b0f9e232a28f7
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-12 22:01:39
Source code size: 335 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 494 / 556
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1006815 - rgbImageSectionsIdentical