LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RE: Image files (Save, Rename)

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

0 Kudos
Message 1 of 9
(2,968 Views)

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


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 2 of 9
(2,938 Views)

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

0 Kudos
Message 3 of 9
(2,930 Views)

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?

0 Kudos
Message 4 of 9
(2,926 Views)

I'm also using IMAQ function to save my Images...

0 Kudos
Message 5 of 9
(2,923 Views)

A file (global variable) is missing...

 

Spoiler
File Missing.png

 

Well can you attach snapshot of actual folder/directory and rephrase your problem...!!


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 6 of 9
(2,918 Views)

Here is the attached .vi

0 Kudos
Message 7 of 9
(2,909 Views)

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.

0 Kudos
Message 8 of 9
(2,903 Views)

Is this you want to accomplish..??


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 9 of 9
(2,897 Views)