A method for electrode placement includes acquiringan image of a body of a patient, such that the imagecaptures a patch that has been placed on the body. Basedon the acquired image and the patch appearing therein,one or more preferred locations are calculated on thebody for placing one or more respective electrodes to beused in carrying out a procedure in an internal organ ofthe patient. The preferred locations are displayed to anoperator.