A digital topographic model of the luminal surface is generated by projecting an optical pattern on the luminal surface from the first location within the lumen. At least a portion of the projected pattern is detected from a second location within the lumen which is based apart from the first location. The dimensions of the luminal wall can be measured by triangulation in order to produce the digital topographic model of the body lumen.