Concatenate multiple image files into a single image
Minimum Origin Version Required: Origin 2015 SR0
1. imfcat fname:=fns$ cols:=3 ofname:=%ymyimage.jpg;
2. imfcat fname:=fns$ dir:=vert cols:=2 rows:=4 ofname:= C:\Users\UserName\Documents\OriginLab\2017\User Files\myimage.png;
3. imfcat fname:="C:\Program Files\OriginLab\Origin2017\Samples\Image Processing and Analysis\myocyte1.tif%(crlf)C:\Program Files\OriginLab\Origin2017\Samples\Image Processing and Analysis\myocyte2.tif%(crlf)C:\Program Files\OriginLab\Origin2017\Samples\Image Processing and Analysis\myocyte3.tif" cols:=2 color:=color(240,208,0) ofname:=%yabc.png;
Please refer to the page for additional option switches when accessing the x-function from script
Input
string
int
Option list:
Output
This X-Function is used to concatenate multiple image files as a single one.
The following example concatenates all 8 image files with prefix "myocyte" into 1.
string fns, path$=system.path.program$ + "Samples\Image Processing and Analysis\"; findfiles fname:=fns$ ext:="myocyte*.tif"; int n = fns.GetNumTokens(CRLF); imfcat fname:=fns$ cols:=4 ofname:=%ymyimage.jpg;
Keywords:combine