Limit on number of polygonal region vertices?

Is MIRIAD being a pain? Let us know your experience.

Moderator: Mark.Wieringa

Post Reply
and460
Posts: 79
Joined: Thu Sep 01, 2011 12:23 pm

Limit on number of polygonal region vertices?

Post 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.
Mark.Wieringa
ATCA Expert
Posts: 297
Joined: Mon Feb 08, 2010 1:37 pm

Re: Limit on number of polygonal region vertices?

Post 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
Post Reply