The ciliary ultrastructure can be damaged in various situations. Such changes include primary defects found in primary ciliary dyskinesia (PCD) and secondary defects developing in secondary ciliary dyskinesia (SCD). PCD is a genetic disease resulting from impaired ciliary motility causing chronic disease of the respiratory tract. SCD is an acquired condition that can be caused, for example, by respiratory infection or exposure to tobacco smoke. The diagnosis of these diseases is a complex process with many diagnostic methods, including the evaluation of ciliary ultrastructure using transmission electron microscopy (the golden standard of examination). Our goal was to create a program capable of automatic quantitative analysis of the ciliary...