Cystography is a diagnostic imaging procedure used to visualize the urinary bladder by filling it with a contrast material and taking X-ray images. It is primarily employed to detect abnormalities such as bladder injuries, tumors, or vesicoureteral reflux, and can be performed as a voiding cystourethrogram to assess bladder function during urination.