[Insight-users] resize image

Corinne Mattmann mattmaco at ee.ethz.ch
Tue, 6 Jan 2004 16:31:09 -0700


Hi,

I would like to resize my image (index and size). What's the easiest way
to do this?
I tried something like this:

	typedef ImageRegion<ImageDimension> ImageRegionType;
	ImageRegionType region;
	typedef Index<ImageDimension> IndexType;
	IndexType index;
	typedef Size<ImageDimension> SizeType;
	SizeType size;
	const long in[3] = {0,0,0};
	index.SetIndex(in);
	const unsigned long si[3] = {50,50,50};
	size.SetSize(si);
	region.SetIndex(index);
	region.SetSize(size);
	image->SetRegions(region);

But I got the following error:

	error C2663: 'SetRegions' : 2 overloads have no legal conversion
for 'this' pointer


Thanks very much,
Corinne Mattmann