FIELD

This disclosure relates to simulating multiple lens distortions within images.

BACKGROUND

Different types of projections may cause different pixel displacement within an image. Use of a single projection within an image may cause undesired pixel displacement within one or more portions of the image.

SUMMARY

) This disclosure relates to simulating multiple lens distortions within images. Image information, multi-lens distortion information, and/or other information may be obtained. The image information may define one or more images including visual content. The visual content of an image may be defined by pixels located at input positions and/or other information. The multi-lens distortion information may identify multiple lens distortions to be simulated within the image(s) and locations of the multiple lens distortions within the image(s). The multiple lens distortions may include a first lens distortion positioned at a first lens distortion location within the image(s), a second lens distortion positioned at a second lens distortion location within the image(s), and/or other lens distortions positions at other distortion locations within the image(s).

Multiple single lens distortion regions and one or more boundary regions within the image(s) may be determined based on the multi-lens distortion information and/or other information. Individual single lens distortion regions may have pixel displacement defined by a single lens distortion and/or other information. Individual boundary regions may have pixel displacement defined by a blend of at least two lens distortions and/or other information. The multiple single lens distortion regions may include a first lens distortion region having pixel displacement defined by the first lens distortion and a second lens distortion region having pixel displacement defined by the second lens distortion. The boundary region(s) may include a boundary region having pixel displacement defined by a blend of the first lens distortion and the second lens distortion. The boundary region may be located between the first lens distortion region and the second lens distortion region.

The pixels of the image(s) may be shifted from the input positions to output positions based on locations of the input positions of the pixels within one of the multiple single lens distortion region and a corresponding single lens distortion or within one of the boundary region(s) and a blend of at least two corresponding lens distortions.

A system that simulates multiple lens distortions within images may include one or more electronic storages, one or more processors, and/or other components. An electronic storage may store image information, information relating to images, multi-lens distortion information, information relating to lens distortions, information relating to single lens distortion regions, information relating to boundary regions, information relating to pixel displacement, information relating to a single lens distortion, information relating to a blend of lens distortions, and/or other information.

The processor(s) may be configured by machine-readable instructions. Executing the machine-readable instructions may cause the processor(s) to facilitate simulating multiple lens distortions within images. The machine-readable instructions may include one or more computer program components. The computer program components may include one or more of an image information component, a multi-lens distortion information component, a region component, a distort component, and/or other computer program components.

The image information component may be configured to obtain image information and/or other information. The image information may define one or more images. An image may include visual content. The visual content may be defined by pixels of the image located at input positions and/or other information.

The multi-lens distortion information component may be configured to obtain multi-lens distortion information and/or other information. The multi-lens distortion information may identify multiple lens distortions to be simulated within one or more images and locations of the multiple lens distortions within the image(s). The multiple lens distortions may include a first lens distortion positioned at a first lens distortion location within the image(s), a second lens distortion positioned at a second lens distortion location within the image(s), and/or other lens distortions positions at other distortion locations within the image(s).

In some implementations, the locations of the multiple lens distortions within the image(s) may be defined by values of a pan parameter, a tilt parameter, a rotate parameter, a size parameter, and/or other parameters. In some implementations, the first lens distortion and the second lens distortion may be adjacently positioned within the image(s) such that the first lens distortion location is next to the second lens distortion location. In some implementations, the first lens distortion may be positioned within the second lens distortion such that the first lens distortion location is within the second lens distortion location.

In some implementations, the locations of the multiple lens distortions within the image(s) may be determined based on visual content detection and/or other information. For example, the first lens distortion may use a rectilinear projection, the second lens distortion may use a stereographic projection, and the visual content detection may include horizon detection. The locations of the multiple lens distortions within the image(s) may be determined based on the horizon detection such that the first lens distortion location is above or includes a horizon detected within the image(s) and the second lens distortion location is below the horizon detected within the image(s).

In some implementations, the first lens distortion and/or the second lens distortion may use multiple lens projections. For example, the multiple lens projections used by the first lens distortion and/or the second lens distortion include both rectilinear projection and stereographic projection, and/or other combinations of projections.

The region component may be configured to determine multiple single lens distortion regions and one or more boundary regions within the image based on the multi-lens distortion information and/or other information. Individual single lens distortion regions may have pixel displacement defined by a single lens distortion and/or other information, and individual boundary regions may have pixel displacement defined by a blend of at least two lens distortions and/or other information such that (1) the multiple single lens distortion regions include a first lens distortion region having pixel displacement defined by the first lens distortion and a second lens distortion region having pixel displacement defined by the second lens distortion, and (2) the boundary region(s) includes a first boundary region having pixel displacement defined by a blend of the first lens distortion and the second lens distortion, with the first boundary region being located between the first lens distortion region and the second lens distortion region.

In some implementations, a blend of multiple lens distortions may be determined based on an alpha transition between lens geometric properties of the multiple lens distortions and/or other information. For example, the blend of the first lens distortion and the second lens distortion for the first boundary region may be determined based on an alpha transition between first lens geometric properties of the first lens distortion and second lens geometric properties of the second lens distortion, and/or other information. An alpha value of the alpha transition for a pixel may be determined based on a corresponding input position within the first boundary region.

The distort component may be configured to shift the pixels of the image(s) from the input positions to output positions based on locations of the input positions of the pixels within (1) one of the multiple single lens distortion region and a corresponding single lens distortion, (2) one of the one or more boundary regions and a blend of at least two corresponding lens distortions, and/or other information.

These and other objects, features, and characteristics of the system and/or method disclosed herein, as well as the methods of operation and functions of the related elements of structure and the combination of parts and economies of manufacture, will become more apparent upon consideration of the following description and the appended claims with reference to the accompanying drawings, all of which form a part of this specification, wherein like reference numerals designate corresponding parts in the various figures. It is to be expressly understood, however, that the drawings are for the purpose of illustration and description only and are not intended as a definition of the limits of the invention. As used in the specification and in the claims, the singular form of “a,” “an,” and “the” include plural referents unless the context clearly dictates otherwise.

