Hello,
I would like to apply object-orientated programming in C++ to sets of 3D images. I would like to do 4 classes:
-dataset:an array of 3D images, contain the nb of 3Dimages as an object
-3Dimage:an array of 2D images, contain the nb of 2D images as an object
-2Dimage:an array of voxels, contain the nb of voxels as an object
-voxel
The main issue I am concerned with is:
-how to organize these classes knowing each is included in the other one?
-which class should contain an instance of the other one?
As a simple implementation, knowing that the nb of 2D images per 3D image is the same in the set (and idem for the nb of voxels per 2D image):
-how can I get the total number of voxels of the dataset?
Should I do something like:
Nb_2Dimages=3Dimage[0]:Get_Nb_images();
Nb_voxels_2Dimage=3Dimage[0][0]:Get_Nb_voxels();
Number_of_voxels=Nb_2Dimages*Nb_voxels_2Dimage;
Many thanks for your help.
Michael