Page 1 of 1

Limit on number of polygonal region vertices?

Posted: Sun Mar 23, 2014 3:08 pm
by and460
Hi guys,

In Miriad, the region of an image to be used as input to a miriad task can be supplied via a text file (i.e. region=@/path/region.file). I want to supply a polygonal region for a task to work on. In practice, is there a limit to the size of the string that can be accepted by Miriad as input, whether that be the number of supplied polygon vertices, or the number of characters in the string? For example, could I supply a region region=abspix,poly(x1,y1,x2,y2,...,x1000,y1000), or a region with 10,000 characters in the input string? Or will Miriad choke before these (rather ridiculously large) inputs are reached?

Cheers,
Craig.

Re: Limit on number of polygonal region vertices?

Posted: Mon Mar 24, 2014 8:30 am
by Mark.Wieringa
Hi Craig,

I had a look at the code and it looks like there is a limit of 4096 characters for the size of the region keyword.
If you need a more complex region than that you could create a mask with immask and keep adding regions until you have selected what you want.

Cheers,

Mark