主权项 |
1. A method to zoom a region of interest from a id="REI-00001" date="20140701" digitalid="REI-00001" source image, wherein a resolution of the region of interest is either id="REI-00002" date="20140701" decimatedid="REI-00002" id="REI-00003" date="20140701" reduced id="REI-00003" or enlarged to fit into a destination image, comprising:
providing a digital camera to implement the following steps: (1) definedefining, with a digital camera, a size and a location of saidthe region of interest as part of saidthe source image; (2) calculate scale of conversion in x- and y-direction; (3) calculate number of rows of pixels of said destination image according to scale of conversion desired in y-direction; (4) calculate number of pixels contained in a row of pixels of said destination image according to scale of conversion desired in x-direction; (5) calculateinterpolating, with the digital camera, multiple pixels in the source image to generate color values of each pixel along the rows of pixels of the destination image by interpolation from nearest row of pixels of said source image wherein the color values of the pixels of the destination image being locatedcorresponding to locations within the region of interest in the source image; replicating, with the digital camera, a first, or correspondingly a last, pixel of a nearest row in the source image for use as color values of pixels in the destination image corresponding to locations between the left side edge of the source image and thea first pixel of the nearest row of pixels of the region of interest of the source image and the color values of the pixels of the destination image being located between the right side edge of the source image and thea last pixel of the nearest row of the source image are achieved by replicating the color values of said first, or correspondingly said last, pixel of the nearest row of the source image; and (6) displaydisplaying, with the digital camera, the zoomed region of interest in saidthe destination image. |