MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / insert

Method insert

ij/src/main/java/ij/plugin/StackInserter.java:63–76  ·  view source on GitHub ↗
(ImagePlus imp1, ImagePlus imp2, int x, int y)

Source from the content-addressed store, hash-verified

61 }
62
63 public void insert(ImagePlus imp1, ImagePlus imp2, int x, int y) {
64 ImageStack stack1 = imp1.getStack();
65 ImageStack stack2 = imp2.getStack();
66 int size1 = stack1.getSize();
67 int size2 = stack2.getSize();
68 ImageProcessor ip1, ip2;
69 for (int i=1; i<=size2; i++) {
70 ip1 = stack1.getProcessor(i<=size1?i:size1);
71 ip2 = stack2.getProcessor(i);
72 ip2.insert(ip1, x, y);
73 stack2.setPixels(ip2.getPixels(), i);
74 }
75 imp2.setStack(null, stack2);
76 }
77
78}

Callers 15

runMethod · 0.95
runMethod · 0.45
pasteMethod · 0.45
drawUnscaledColorBarMethod · 0.45
addOrderedMethod · 0.45
addItemSortedMethod · 0.45
insertWindowMenuItemMethod · 0.45
addOpenRecentItemMethod · 0.45
reduceMethod · 0.45
itemStateChangedMethod · 0.45
itemStateChangedMethod · 0.45
makeBandMethod · 0.45

Calls 7

getSizeMethod · 0.95
getProcessorMethod · 0.95
insertMethod · 0.95
setPixelsMethod · 0.95
getPixelsMethod · 0.95
setStackMethod · 0.80
getStackMethod · 0.45

Tested by

no test coverage detected