10-24-2013 03:10 PM
I have a set of 3 images for an MxN pixels of certain scan.
The developed code for 3 images is attached.
10-24-2013 04:16 PM - edited 10-24-2013 04:17 PM
Well, the tools are "strip path", "build path", and "get file extension". The rest are simple string operations on the filename.
Sorry, it is not clear what exactly you are trying to do. Is each pixel a seperate image file? You seem to list all BMPs in a folder, but then only look at three files.
Can you show an example file list and what kind of output you expect from it?
(In the meantime, you really should do a few more tutorials. learn about autoindexing (first loop). Also don't convert the path to a string only to convert it back to what it was a few nanoseconds later. The "array to cluster...unbundle dance" is just silly. Simply use index array resized to three output. See attached).)
10-24-2013 05:03 PM
"Pixel-1_Pulse1, Pixel-1_Pulse2 and Pixel-1_Background"
Sure, Format into string with pixel coords and a Enum e.g. would create the filename. Then it's a simple Build path.
/Y
10-24-2013 05:56 PM
@abikutn wrote:
I have a set of 3 images for an MxN pixels of certain scan.
- I have developed a code that does some image processing and renames the files as pulse-1, pulse-2 and background-1. This is for 1 pixel. Right now I can do this to only the three images that relates to One pixel that I used for testing.
- In futures I will be having MxN images, which means MxN pixels and I have MxNx3 images, how can I sequentially rename the files based on which pixel it corresponds to ? for ex: Pixel-1_Pulse1, Pixel-1_Pulse2 and Pixel-1_Background.
The developed code for 3 images is attached.
look here.....