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
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
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
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?
I'm also using IMAQ function to save my Images...
A file (global variable) is missing...
Well can you attach snapshot of actual folder/directory and rephrase your problem...!!
Here is the attached .vi
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.
Is this you want to accomplish..??