Objectives: The study aimed to analyze the brain white matter hyperintensities (WMHs) of patients with vascular dementia (VaD) and Alzheimer’s disease (AD) using magnetic resonance imaging to determine whether white matter lesions in the brain could be detected by a computer using image processing methods. Patients and methods: In this retrospective observational study, a unimodal, unsupervised, and automatic method was developed, and magnetic resonance imaging of 35 patients were examined. Of the 35 patients, 19 (14 males, 5 females; mean age: 73.2±6.7 years; range, 56 to 83 years) were picked from patients with AD or VaD who were admitted to a neurology clinic between January 2016 and December 2022 (Group 1). The remaining 16 patients (10 females, 5 males; mean age: 80.4±5.4 years; range, 69 to 92 years) were included from the ABVIB (Aging Brain: Vasculature, Ischemia, and Behavior) study from the ADNI (Alzheimer’s Disease Neuroimaging Initiative) database (Group 2). To calculate the volume of WMHs, a detailed analysis was conducted. Initially, skull stripping was performed, and then the brain was segmented. Afterward, two types of masks (Mask1 and Mask-2) were obtained by applying painting, decreasing, and blurring processes to the segmented white matter. These masks limited the region that was searched for WMHs. With this limitation, false positives that could arise from gray matter intensities were tried to be prevented. To evaluate the accuracy of WMH detection, a user interface was developed, and manual marking was conducted by an expert neurologist. After WMH detection, WMH volumes were calculated. Results: For Group 1, the similarity index was found to be 0.76 for Mask-1 and 0.80 for Mask-2, while for Group 2, the similarity index was 0.71 for Mask-1 and 0.87 for Mask-2. In patients with AD, the mean WMH lesion load (LL) was 15.16±16.59 mL. In patients with VaD, who were expected to suffer more from WMHs, the mean WMH LL was 29.22±11.40 mL. In Group 2, the mean WMH LL was 17.77±12.26 mL. Conclusion: This study may contribute to the literature since it is an automatic, unimodal, and unsupervised method that was applied to both a completely unique data set with many different scanning parameters and an open database data set.