region, a FORTRAN90 code 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 MIT license


region is available in a FORTRAN90 version.

Related Data and Programs:

IMAGE_COMPONENTS, a FORTRAN90 code which seeks the connected "nonzero" or "nonblack" components of an image or integer vector, array or 3D block.


Source Code:

Last revised on 24 August 2020.