A set of first modality data (e.g., MR or CT) is provided. The set of first modality data comprises a plurality of mu-maps, a plurality of motion vectors and a plurality of gated data. Each of the mu-maps corresponds to one of the beds. A set of second modality data (e.g., PET/SPECT) is provided. The set of second modality data comprises a plurality of frames for each of the beds. Each of the plurality of frames is warped by one or more motion vectors of the plurality of motion vectors. A single-bed image is generated for each bed by summing the frames corresponding to the bed. A whole body image is generated by summing the single-bed images for each of the beds.