I am trying to extract the dimension size info of the image with GetSize() and Get3DSize() as follows:
try { 2DData.Get3DSize (sizeX, sizeY, sizeZ); }
catch { 2DData.GetSize (sizeX, sizeY); Break; }
OKDialog ("Size in Z direction ="+ sizeZ)
For 2D data, Get3DSize() apparently does not work and the stuff within catch() will be executed to catch this error. Strange is that the size in the Z direction can still be extracted and it is 1. What happens here?