How can atelectasis be distinguished from pneumonia

How can atelectasis be distinguished from pneumonia

Atelectasis is frequently linear and may change rapidly, and it is most often seen in the lower lobes. Pneumonia is patchy with an irregular shape; segmental or lobar consolidation may be seen, and air bronchograms are common.