Rogue wave formation in shallow water is often governed by dispersive focusing and wave-bottom interaction. In this study we try to combine these mechanisms by considering dispersive nonreflecting wave propagation in shallow strongly inhomogeneous channels. Nonreflecting wave propagation provides extreme wave amplification and the transfer of wave energy over large distances, while dispersive effects allow formation of a short-lived wave of extreme height (rogue wave). We found several types of water channels, where this mechanism can be realized, including (i) channels with a monotonically decreasing cross-section (normal dispersion), (ii) an inland basin described by a half of elliptic paraboloid (abnormal dispersion) and (iii) an underwater hill described by a half of hyperbolic paraboloid (normal dispersion). Conditions for variations of local frequency in the wave train providing optimal focusing of the wave train are also found.