The glomerulus is the blood filtering unit of the kidney. Each human kidney contains glomeruli. Several renal conditions originate from structural damage to glomerular microcompartments, such as proteinuria, the excessive loss of blood proteins into urine. The gold standard for evaluating structural damage in renal pathology is histopathological and immunofluorescence examination of needle biopsies under a light microscope. This method is limited by qualitative or semiquantitative manual scoring approaches to the evaluation of glomerular structural features. Computational quantification of equivalent features promises to improve the precision of glomerular structural analysis. One large obstacle to the computational quantification of renal tissue is the identification of complex glomerular boundaries automatically. To mitigate this issue, we developed a computational pipeline capable of extracting and exactly defining glomerular boundaries. Our method, composed of Gabor filtering, Gaussian blurring, statistical -testing, and distance transform, is able to accurately identify glomerular boundaries with mean sensitivity/specificity of and accuracy of 0.92, on glomeruli images stained with standard renal histological stains. Our method will simplify computational partitioning of glomerular microcompartments hidden within dense textural boundaries. Automatic quantification of glomeruli will streamline structural analysis in clinic and can pioneer real-time diagnoses and interventions for renal care.