05-30-2013 09:06 PM
Hi programmers,
I need some help on coding.
I have a subfolder that contain all the small tile Images and I have the program to stitch the images into a complete image and I'm able to save only one complete Image one at a time, I now need to open only the root folder, rename the complete Images and save the image in a specific format.
But I need to change the file name for example for my situation one of my file format is
060313_0114PM_XY_MULTI-TILE_X=011_Y=011_RUN006109_SAMPLE_D_205
and there is a pattern with the format where I have to sort all the files and refine my search with those files with SAMPLE_A_ , SAMPLE_B_, SAMPLE_C_ and SAMPLE_D_ and put it into an array of strings... and rename the file and save the file in this format. eg. SAMPLE_A_205.tif, SAMPLE_B_207.tif ...
Do anyone got any clue or tips to help me?
Thanks,
Alan
05-31-2013 01:55 AM
Can not you ask your question in a simpler way..!!
As you mentioned about small images you have in some folder and then you also told us about the stiching alogrithm that you used to make so called 'complete' image...!!
But now I think you have something to do with the file renaming...!!
Is it so... if yes... you can use "Move File" function
05-31-2013 02:48 AM
Sorry I'm new in programming. I had some difficulties phrasing my problems.han
Thanks for the help, but that's not what I'm looking for.
I need a code that will read my root file and select the subfolder files with a certain pattern in their file name, I need to take away that pattern and save it only with the last few number.
eg. Subfolder name - "060313_0114PM_XY_MULTI-TILE_X=011_Y=011_RUN006109_SAMPLE_D_205"
name of my new file - 205
05-31-2013 02:55 AM
But I need to refine and select only those files with "Sample_A_", "Sample_B_", "Sample_C_" and "Sample_D_"
I tried match pattern but it don't work from the output of list folder.
I done some codes though, mind if you take a look at them?
05-31-2013 02:59 AM
I'm also using IMAQ function to save my Images...
05-31-2013 03:25 AM - edited 05-31-2013 03:25 AM
A file (global variable) is missing...
Well can you attach snapshot of actual folder/directory and rephrase your problem...!!
05-31-2013 03:52 AM
Here is the attached .vi
05-31-2013 04:36 AM
I tried a way to only use those file with SAMPLE_A_ SAMPLE_B_ SAMPLE_C_ SAMPLE_D_ ... But the .vi just can't work.
05-31-2013 04:56 AM
Is this you want to accomplish..??