How to append data with Image Name Tag?
How to copy the image name from the active window to a data files?
Example, I need to process set of jpeg images in folder 438
In folder 438 contain many jpeg images.
step 2 processing the image.
I have to manually select the AOI. This step can not be automated.
I also have to manually Mask the area of interested this step can not be automated.
I click on bright object and click on view statistic and click on append data to file then manually save with image folder name on it.
then I repeat the step for dark object click on view statistic then click on append data to file.
But, I can not append the name of the image to each data set of bright and dark object? Can anyone answer this?
Currently, I am using these statements. for part of step2 and step 3
ret =IpBlbSetAttr(BLOB_AUTORANGE,1)
ret =IpBlbSetAttr(BLOB_BRIGHTOBJ,1)
ret = IpBlbCount( )
ret = IpBlbUpdate (0)
ret = IpBlbShowStatistics(1)
ret = IpBlbSaveData("I:\GFAP_red Channel \438_folder_data.cnt", S_APPEND+S_STATS+S_HEADER+S_X_AXIS+S_Y_AXIS)
ret =IpBlbSetAttr(BLOB_AUTORANGE,1)
ret =IpBlbSetAttr(BLOB_BRIGHTOBJ,0)
ret = IpBlbCount( )
ret = IpBlbUpdate (0)
ret = IpBlbShowStatistics(1)
ret = IpBlbSaveData("I:\GFAP_red Channel \438_folder_data.cnt", S_APPEND+S_STATS+S_HEADER+S_X_AXIS+S_Y_AXIS)
Then, I have to manually save the image data.
My question is How to Automatically append the active window image name to each set of the data because as I keep on appending the data set of bright object and dark object data set gets longer. But, as list get longer, it become very difficulty to tell which image name is corresponding to which data set
Can anyone answer this?
.
0
Answers
First: try to post comments inside your topic, not in other pages.
Second: you may debug your code and check what result you get in the debugger, for example:
Dim filename as String
filename=ImageFileName + ".csv"
Debug.Pring filename
ret = IpBlbSaveData (filename)
Also you may try to use & instead of +:
filename=ImageFileName & ".csv"
Regards,
Yuri