REGION is a FORTRAN90 library which manipulates 3D voxel data.
As part of a project, we had to take a file of voxel data representing a brain scan. Each voxel had an integer value representing the intensity of a signal. Only voxels with an intensity above a certain value were to be considered. Those voxels were then grouped into contiguous regions.
A further complication was the desire to be able to include an enclosing surface image of the brain, project the internal regions out along a line from a point to the surface, and mark the surface with the color associated with the region. Some of the routines in this package are associated with that task.
A simple routine called IVOXEL_TO_OBJ allows you to take a voxel array and create a corresponding OBJ 3D graphics file.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
ASCII_TO_MRI, a C program which restores MRI data to its original binary format, having been previously converted to an ASCII text file.
IMAGE_COMPONENTS, a FORTRAN90 library which seeks the connected "nonzero" or "nonblack" components of an image or integer vector, array or 3D block.
MRI_TO_ASCII, a C program which reads a (binary) MRI file and makes an ASCII copy that can be handled by REGION.
MRI_TO_PGM, a C program which converts the binary data in an MRI file to a sequence of PGM image files.
OBJ_DISPLAY, a MATLAB program which reads an OBJ 3D graphics file and displays it on the screen.
You can go up one level to the FORTRAN90 source codes.