I have an issue with some VTK related functions which is based on previous versions of VTK.
For example,
img_data.Update()
img_shape = img_data.GetWholeExtent()
These functions are not defined in current versions of VTK. How can I replace them? or is there a workaround for this issue?