i have questions regarding dealing multiple images of series:
when coding, can front image
image front:=getfrontimage(). can image not in front? example, if there total 20 images, can directly 7th image (-counted front back-) similar pseudo-command:image img7:=getfrontthe7thimage()?i have series of images, format of names of images consistent, such name of front image xxx001, second xxx002, third 1 xxx003,..., nth image xxxn, use coding define
image n:=imagexxxn, , directly use image n math process? or should use loop , images one-by-one?
1)
as can have multiple images within 1 window/saved data set ( - copy & paste 1 image onto other - ) saver use imagedocuments iteration. imagedocument object gets stored , loaded hard drive. when create image, don't display it, image not yet have imagedocument, (once) displayed images do.
to select last image (the back-most) can following:
number ndocs = countimagedocuments() imagedocument doclast = getimagedocument( ndocs-1 ) image imglast := imagedocumentgetimage( doclast, 0 ) selectimage( imglast ) note can things in single line well, using oop coding style first parameter of method put in front of command allow pipe-lines. can select 2nd-front-most image (provided there @ least 2) line
getimagedocument(1).imagedocumentgetimage(0).selectimage()
2)
you need loop access multiple images, parallel processing might consider putting data 3d data-stack. (also note, can load multiple image 3d stack using file/open series...). depending on want do, can operate on stack "slice slice" iterating on z-dimension slice2 command, or might able act on 3d data whole.
Comments
Post a Comment