hello,
first I apologize because may some of you will find my question stupid,but please take the fact that I am a beginner in consideration. I recorded a welding process with a sensor. The sensor delivers a huge amount of pictures organized in different files. the sensor was configured so that in each files, it automatically saves a given amount of picture (which can not been changed), so that when the process last shorter, the sensor take pictures from the previous processes to reach the given number of picture. As result I have many processes saved in the same file but I am only interested in the last process. I would like to know if there is any possiblity with imageJ to go to upload the file, select the picture of the last process and delete automatically the useless one. As soon as the different processes are separated by some blanck pictures, my idea was to plot the z-axis profile of the file (Intensity mean value vs slides number), so I clearly see the different processes. To select the desired process I decided to plot a line in this z-axis profile and look for the intersection points of this horizontale line (with y value below the minimal value of the intensity for all the processes). The intesections points of this line with the mean intensity curve should give me as result the slides numbers corresponding the to the beginning and the end of each process. And as soon as I am intesrested only in the last process I can select the slides numbers corresponding the my process by doing a comparison between the interpolation results. I have problem at the following steps: 1- how to plot a line automatically in the z-axis profile curve (without manual click with to mouse) 2- how to read out the values of the intesections points between the curve and the line 3-When the whole file is uploaded will it be any way to delete automatically the useless slides according to the previous results ? (the process durations are diferents for diffrents files so the determined position of the 1st and the last picture of the desired process will change from file to file)? or must I just save the region of interest and upload it again? thank you in advanced for your help attached you will find an example of the z-axis profile for one file. BEST REGARDS Paul z_profile (33K) Download Attachment |
On 26 Apr 2011, at 11:07, Paul Rostand wrote:
> ... > > 1- how to plot a line automatically in the z-axis profile curve > (without manual > click with to mouse) Image>Stacks>Plot z-axis Profile uses the full image or the current selection (aka ROI, region of interest). A ROI can also have only one pixel. No need to click anywhere. Use the Macro Recorder or see the macro functions documentation http://rsb.info.nih.gov/ij/developer/macro/functions.html for setting a selection. > 2- how to read out the values of the intesections points between > the curve and > the line Again see the documentation; Plot.getValues(xpoints, ypoints), then you need some programming to step through the ypoints array (xpoints gives the slice numbers) > 3-When the whole file is uploaded will it be any way to delete > automatically > the useless slides according to the previous results ? Image>Stacks>Set slice and Delete slice should be macro.recordable. You can also find the setSlice(n) macro command in the macro functions documentation. Michael |
Free forum by Nabble | Edit this page |