Normal function of the gastrointestinal tract involves the coordinated activity of several cell types Human disorders of motor function of the gastrointestinal tract are often associated with changes in the number of these cells. For example, in diabetic patients, abnormalities in gastrointestinal transit are associated with changes in nerves and interstitial cells of Cajal (ICC), two key cells that generate and regulate motility. ICC are cells of mesenchymal origin that function as pacemakers and amplify neuronal signals in the gastrointestinal tract. Quantifying the changes in number of specific cell types in tissues from patients with motility disorders is challenging and requires immunolabeling for specific antigens. The shape of nuclei differs between the cell types in the wall of the gastrointestinal tract. Therefore the objective of this study was to determine whether cell nuclei can be classified by analyzing the 3D morphology of the nuclei. Furthermore, the orientation of the long axis of nuclei changes within and between the muscle layers. These features can be used to classify and differentially label the nuclei in confocal volume images of the tissue by computing the principal axis of the coordinates of the set of voxels forming each nucleus and thereby to identify cells by their nuclear morphology. Using this approach, we were able to separate and quantify nuclei in the smooth muscle layers of the tissue. Therefore we conclude that computer-aided classification of cell nuclei can be used to identify changes in the cell types expressed in gastrointestinal smooth muscle.