Protocol editor: ROI & folder loop

60 views
Skip to first unread message

Arthur Bellier

unread,
May 30, 2013, 5:07:29 AM5/30/13
to icy-so...@googlegroups.com
two part question:

In the Protocol editor, following the Crop sequence to ROI block, are we supposed to use an indexer, an iterator or something else?

Also when using a folder loop, even with a clean folder containing only tiff, verified to be open-able by ICY, I get a error message reading:

- Error in block "Files to sequence (#1)":
unable to read files (java.io.File cannot be cast to [Ljava.io.File;)
This message is repeated one time per .tif file
FolderloopedV1.png
FolderloopedV1.xml

Alexandre Dufour

unread,
May 30, 2013, 5:10:38 AM5/30/13
to icy-so...@googlegroups.com
Hi Arthur,

On 30 mai 2013, at 11:07, Arthur Bellier wrote:

two part question:

In the Protocol editor, following the Crop sequence to ROI block, are we supposed to use an indexer, an iterator or something else?

An indexer would be if you have only one crop (so one ROI). If you have more than one, you would use an "Array Loop" on the list of crops.

Also when using a folder loop, even with a clean folder containing only tiff, verified to be open-able by ICY, I get a error message reading:

- Error in block "Files to sequence (#1)":
unable to read files (java.io.File cannot be cast to [Ljava.io.File;)
This message is repeated one time per .tif file

Indeed, because you are using the "Files to sequence" (with an "s") and not "File to sequence" (with no "s"). The difference is that the former opens multiple images into one sequence, while the latter opens each file into its on sequence (which is what you want here).

Let me know if this helps,

Alexandre

Arthur Bellier

unread,
May 30, 2013, 8:12:06 AM5/30/13
to icy-so...@googlegroups.com
Thanks.

I hadn't understood the difference between singular and plural in blocks.

Also I only have 1 ROI so an Indexer works ...
...except it crops the image to the smallest rectangle containing all or my ROI, not to my ROI.

To get things done outside of the protocol editor I inverted my ROI and then filled my ROI with a color. Unfortunately I haven't found how to do this ( or anything that allows me to apply modification to a non-rectangular ROI ) in Protocols.

Arthur

Arthur Bellier

unread,
May 31, 2013, 6:14:33 AM5/31/13
to icy-so...@googlegroups.com
Do you have an example sequence for running any block on a non-rectangular ROI ? I can't seen to find how to do this.

Arthur

Alexandre Dufour

unread,
May 31, 2013, 6:40:18 AM5/31/13
to icy-so...@googlegroups.com
On 31 mai 2013, at 12:14, Arthur Bellier wrote:

Do you have an example sequence for running any block on a non-rectangular ROI ? I can't seen to find how to do this.

What do you mean by this? There is no distinction between types of ROI in protocols, so any block taking ROI as input should work properly. Which block did you have in mind?

Alexandre


--
You received this message because you are subscribed to the Google Groups "Icy imaging" group.
To unsubscribe from this group and stop receiving emails from it, send an email to icy-software...@googlegroups.com.
To post to this group, send email to icy-so...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/icy-software/7b109c35-6f92-416e-9c26-fa5bb6ad16ee%40googlegroups.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Arthur Bellier

unread,
May 31, 2013, 8:23:23 AM5/31/13
to icy-so...@googlegroups.com
Well with this protocol and image+ROI, the output displayed by block 4 is the original image file, just cropped to the smallest possible rectangle containing the ROI, not just the ROI.
Contra 1-1 Iba1-tiff.tif
Contra 1-1 Iba1-tiff.xml
FolderloopedV1.png
FolderloopedV1.xml

Arthur Bellier

unread,
May 31, 2013, 8:37:02 AM5/31/13
to icy-so...@googlegroups.com
sorry, display has to come from "element" of block 4, I have updated the protocol
FolderloopedV1.1.xml
Reply all
Reply to author
Forward
0 new messages