Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Print["Processing images..."];
  2. atomImageFile =
  3. imagesDirectory <> imageTime <> atomImageSuffix <> imageFormat;
  4. noAtomImageFile =
  5. imagesDirectory <> imageTime <> noAtomImageSuffix <> imageFormat;
  6. backgroundImageFile =
  7. imagesDirectory <> backgroundImageFileName <> imageFormat;
  8. backgroundImage = Image[Import[backgroundImageFile, "PNG"]];
  9. atomImage = Image[Import[atomImageFile, "PNG"]];
  10. noAtomImage = Image[Import[noAtomImageFile, "PNG"]];
  11. ImageSubtract[atomImage, backgroundImage];
  12.  
  13. Print["Done."];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement