Image Selection
Hello
I'm writing an automation which requires me to loop through a time series of images 1 time point at a time however when I try to select the original image I get the error in the attached image. I can't figure out what is wrong as you can see in the watch window that the variable OriginalImage has a value. Any help appreciated
Regards
David
0
Best Answer
-
Hello David,We are working on the color composite playback issue, as I mentioned earlier.As a workaround you can save and then reload the set, it will fix color composite playback issue, but it may not be acceptable for you as sets are very big.It will be fixed in the next patch.Yuri0
Answers
Hello Yuri
Doesn't work, I also tried imageset1, I get the same ActiveX Automation: Object var is 'Nothing'
I looked in the Watch window and imageset1 is set to Object@Nothing and window1 = Empty.
I set the OriginalImage variable right at the beginning of the automation and made it a public variable and it always has a value whereas window1 and imageset1 don't seem to. Should I set imageset1 to the name of the function so in this case it would Object@GreenChannel
Regards
David
Hello Yuri
This isn't really a macro that can be recorded. I start with a 2 channel, multi-timepoint, multi Z position image from a deltavision. On each channel I threshold for small fluorescent spots in the Z positions at each timepoint, once thresholded I make a mask of the thresholded point and save the mask image, this is repeated for each timepoint in both channels. The idea is to then recombine the masks as pure green and pure red in a 3D timelapse image which can be played so that as the green and red (now blobs) will go yellow as they interact and back to red and green as they separate. I'll add some measurement functions later if the experiment has worked properly.
I have to work by recording bits and then customizing them as best I can because I cannot figure out the IQL commands.
Regards
David
Thanks Yuri,
I'll give it a go
Regards
David
Hello Yuri
It didn't work, it seems to make a mask in Z of the first timepoint but just appends that mask to all the other timepoints giving 61 identical masks.
I've tried to step through the automation and it appears that the variable curLoc never changes which I think should change everytime the timepoint increments. Its quite hard to debug because the Watch window only gives the Hex memory location. Is there a way to get it to show exactly what the variable holds, which debugger do you use as yours must show the actual variable contents.
Regards
David
Hello Yuri
That worked, however when you play through the time dimension I get the following error.
Not a legal OleAut date
The file I'm using is a deltavision file rather than the metamorph one you tested it with. I've put the file onto my server and I'll send you the link outside of the forum.
Regards
David
Hello Yuri
Fixed the oleaut date problem and makes the separate red/green mask images but when I put the red/green masks back together in composite view Premier will only show the frame it was showing when composite was clicked. When you cycle through time it just shows the same image.
Regards
David
That works
Thanks
David