Result of itk.Size

Hi all,

The result of itk.Size seems to be different between ITK 4.13.0 and ITK 5.0. Is this a bug? Thanks.

Regards,

Zhuangming Shen

@hjmjohnson might give a better explanation, but perhaps the Size was zero initialized before, whereas it might be not initialized now.

1 Like

a and b objects may actually be different objects.

Perhaps all the values are actually the same. Can you please determine if each value is different?

Hi Dzenanz and Hans,

I printed a and b, looks they should be the same. So it’s strange…

Regards,

Zhuangming Shen

1 Like

This seems to be the likely explanation.

@zhuangming.shen can you verify that

a.Fill(0)
b.Fill(0)
a == b

returns True?

It returns False!

itkSize%20issue_20180507

1 Like