Perineuronal nets (PNNs) represent a highly condensed specialized form of brain extracellular matrix (ECM) enwrapping mostly parvalbumin-positive interneurons in the brain in a mesh-like fashion. PNNs not only regulate the onset and completion of the critical period during postnatal brain development, control cell excitability, and synaptic transmission but are also implicated in several brain disorders including schizophrenia. Holes in the perineuronal nets, harboring the synaptic contacts, along with hole-surrounding ECM barrier can be viewed as PNN compartmentalization units that might determine the properties of synapses and heterosynaptic communication. In this study, we developed a novel open-source script for Fiji (ImageJ) to semi-automatically quantify structural alterations of PNNs such as the number of PNN units, area, mean intensity of PNN marker expression in 2D and 3D, shape parameters of PNN units in the ketamine-treated Sprague-Dawley rat model of schizophrenia using high-resolution confocal microscopic images. We discovered that the mean intensity of ECM within PNN units is inversely correlated with the area and the perimeter of the PNN holes. The intensity, size, and shape of PNN units proved to be three major principal factors to describe their variability. Ketamine-treated ratsThis is an open access article under the terms of the Creative Commons Attribution-NonCommercial License, which permits use, distribution and reproduction in any medium, provided the original work is properly cited and is not used for commercial purposes.