Post Reply 

Stitching Images by Coordinates

Sep 21, 2012, 21:18
Post: #1
Stitching Images by Coordinates
So, I have a project where I am stitching a sparse array of separate images together into one large image. The images are simple black-white, so I plan on offsetting each as layers, since there is no basic selection-move script that I have found.

I have experience with script-fu before, so the only issue I have is reading in the coordinate information. I have looked up and found references to string->number, but those are in R5RS. I haven't researched R5RS, but I have seen that implementing it in script-fu is rough even if it works.

I know that in the beginning I will have a layer set up as a background layer, but that is not the issue I need help with, so I haven't included it.

Any help is appreciated.

This is my pseudocode:

(define script-fu-stitch-image)

gimp-file-load-layers
(set! layerList gimp-image-get-layers)
(set! numLayers (car layerList))
(set! layerlist (cdr layerList))

(while (numLayers > 0)

gimp-image-set-active-layer

change layer string to int
transform coordinates to pixel values

gimp-layer-add-alpha
gimp-layer-resize (position offset included here)

(set! numLayers (- numLayers 1))
);end loop

plug-in-align-layers
gimp-image-resize-to-layers
gimp-image-flatten

file-png-save-defaults
Find all posts by this user
Quote this message in a reply
Sep 21, 2012, 22:08
Post: #2
RE: Stitching Images by Coordinates
That is indeed the project, and I have visited that website before, but it is just a stitching via web coding. I want to make a single image. Unfortunately, the way GIMP imports images, a manipulable xcf image is around 35GB. It looks like I need to run it on a machine with that much ram support. Once it is compressed back to png, it should be about 10 MB.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  creating multiple sized images from one ntuck86 1 479 Jul 29, 2017 08:18
Last Post: ythgilb
  Batch create images from array edmilner 1 629 Jul 17, 2017 16:41
Last Post: ythgilb
Question Wanting to find / create a script which stitches images together PantsOnFire 2 773 Aug 12, 2014 22:45
Last Post: fluffybunny2
Question Load PDF and load images Vash Stampida 2 715 Aug 7, 2014 20:05
Last Post: Vash Stampida
  Coordinates report script, exists ? (for graphics apps development) (Kutt/Kwiskher) gigigi 2 460 Jun 16, 2014 15:16
Last Post: gigigi

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS