Patent Description:
With popularity of mobile photographing devices, there are various photographing technologies in related arts. Multi-image photographing and composition technology is a more complex photographing technology than a single-image photographing technology. The multi-image photographing and composition technology is applied to panoramic photographing, HDR composition, long exposure electron aperture and the like.

<CIT> discloses an electronic still camera. A normal photographing mode is selected by a mode switch circuit and a synchronizing signal pulse to be outputted from a synchronizing signal generation circuit operates a driving circuit so as to read an image signal corresponding to a frame from a color solid-state image pickup element CCD <NUM>. The circuit transmits a read out driving signal to the CCD <NUM> and transmits a signal moving the CCD <NUM> to a piezoelectric element. The image signal from the CCD <NUM> is inputted in a pre-processing circuit, it is converted into a digital signal by an A/D converter after processings such as a preamplification, a white balance, a gamma control, etc., are performed, it is stored in a buffer memory <NUM> and it is processed in a noninterlace.

<CIT> discloses an image processing apparatus, comprising: an image acquisition means for acquiring low-resolution images captured in time sequence; a positioning means for generating a high-resolution image obtained by positioning, on the basis of the motions between the low-resolution images, the low-resolution images on a high-resolution image space; a correlation calculation means for calculating, for each of a plurality of partial areas of the high-resolution image, correlation information indicating a degree of correlation between the corresponding areas of the low-resolution images corresponding to the partial area; and an image combination means for calculating, on the basis of the correlation information, a combination ratio between the high-resolution image and a to-be-combined image for each partial area and for combining, in accordance with the combination ratio, the high-resolution image and the to-be-combined image having a lower resolution than the high-resolution image.

An objective of the present disclosure is to solve one of the above technical problems to a certain extent.

Accordingly, a first objective of the present disclosure is to provide a method for compositing a plurality of images. The method may reduce shakiness during photographing by controlling via a micro-electro-mechanical system (MEMS), movement of an image sensor, thereby further improving quality of each image captured, and improving an image quality of a composite picture.

A second objective of the present disclosure is to provide a device for compositing a plurality of images.

A third objective of the present disclosure is to provide a non-transitory computer storage medium.

In order to achieve the above objectives, the method for compositing a plurality of images according to embodiments of a first aspect of the present disclosure includes acquiring a first exposure time t required for current photographing, and dividing the first exposure time t into N segments, where N is M power of <NUM> and M is a positive integer; controlling by a micro-electro-mechanical system MEMS, an image sensor to move clockwise or counterclockwise according to a step length of a preset number of pixels, and controlling the image sensor to expose for a second exposure time t/N after each movement of the image sensor according to the preset number of pixels, to acquire N images; and compositing the N images to obtain a composite picture.

With the method for compositing a plurality of images according to the embodiments of the present disclosure, when it is required to composite a plurality of captured images, the first exposure time t required for current photographing is acquired, and the first exposure time t is divided into N segments. The MEMS controls the image sensor to move clockwise or counterclockwise according to the step length of the preset number of pixels, and controls the image sensor to expose for the second exposure time t/N after each movement of the image sensor according to the preset number of pixels, to acquire N images. The N images are composited to obtain the composite picture. Therefore, by controlling the movement of the image sensor via the MEMS, the shakiness during the photographing is reduced, thereby further improving the quality of each image captured and improving an imaging quality of the composite picture.

According to the invention, compositing the N images to obtain the composite picture includes:.

According to an embodiment of the present disclosure, comparing the contents of the current pixels in the N images and performing the pixel composition based on the comparison result includes:.

According to an embodiment of the present disclosure, the method further includes:
in response to determining that any of the matching degrees between the contents of the N current pixels does not exceed the preset threshold, determining a first current pixel having a maximum difference from other current pixels in the N current pixels, replacing the first current pixel with one of the other current pixels, and superimposing the other current pixels and a replaced first current pixel.

According to an embodiment of the present disclosure, the preset number of pixels includes one pixel.

According to an embodiment of the present disclosure, N is set in advance according to a pixel requirement required for current photographing.

According to an embodiment of the present disclosure, compositing the N images to obtain the composite picture includes: compositing the N images using a principle of multi-image composition, to obtain the composite picture.

In order to achieve the above objectives, the device for compositing a plurality of images according to a second aspect of the present invention includes: an acquisition module, configured to acquire a first exposure time t required for current photographing, and divide the first exposure time t into N segments, where N is M power of <NUM> and M is a positive integer; a processing module, configured to control via a micro-electro-mechanical system MEMS, an image sensor to move clockwise or counterclockwise according to a step length of a preset number of pixels, and control the image sensor to expose for a second exposure time t/N after each movement of the image sensor according to the preset number of pixels, to acquire N images; and a composition module, configured to composite the N images to obtain a composite picture.

With the device for compositing a plurality of images according to embodiments of the present disclosure, when it is required to composite a plurality of captured images, the first exposure time t required for current photographing is acquired, and the first exposure time t is divided into N segments. The MEMS controls the image sensor to move clockwise or counterclockwise according to the step length of the preset number of pixels, and controls the image sensor to expose for the second exposure time t/N after each movement of the image sensor according to the preset number of pixels, to acquire N images. The N images are composited to obtain the composite picture. Therefore, by controlling the movement of the image sensor via the MEMS, the shakiness during the photographing is reduced, thereby further improving the quality of each image captured and improving an imaging quality of the composite picture.

According to the invention, the composition module includes:.

According to an embodiment of the present disclosure, the composition unit is configured to:
determine whether each of matching degrees between the contents of N current pixels exceeds a preset threshold; and superimpose the N current pixels when each of the matching degrees exceeds the preset threshold.

According to an embodiment of the present disclosure, the composition module further includes:
a processing unit, configured to, in response to determining that any of the matching degrees between the contents of the N current pixels does not exceed the preset threshold, determine a first current pixel having a maximum difference from other current pixels in the N current pixels, replace the first current pixel with one of the other current pixels, and superimpose the other current pixels and a replaced first current pixel.

According to an embodiment of the present disclosure, the composition module is configured to:
composite the N images using a principle of multi-image composition, to obtain the composite picture.

The non-transitory computer storage medium according to the third aspect of the present disclosure has one or more programs stored thereon. When the one or more programs are executed by a device, the device is configured to execute the method for compositing a plurality of images according to embodiments of the first aspect of the present disclosure.

Additional aspects and advantages of embodiments of present disclosure will be given in part in the following descriptions, become apparent in part from the following descriptions, or be learned from the practice of the embodiments of the present disclosure.

The above and/or additional aspects and advantages of embodiments of the present disclosure will become apparent and more readily appreciated from the following descriptions made with reference to the drawings, in which:.

Descriptions will be made in detail to embodiments of the present disclosure and examples of the embodiments are illustrated in drawings. The same or similar elements and the elements having same or similar functions are denoted by like reference numerals throughout the descriptions. The embodiments described herein with reference to drawings are explanatory, are used to understand the present disclosure.

With development of mobile terminals, hardware of the mobile terminal is constantly updated. For example, a micro-electro-mechanical system (MEMS) is used in the mobile terminal. In some examples, the MEMS may be applied to several components, for example, applied to an imaging component. The imaging component includes a lens, a MEMS, an image senor and the like. The MEMS may drive the image sensor to move along different directions within a same plane.

A multi-image photographing and composition technology is applied to panoramic photographing, HDR composition, long exposure electron aperture and the like. A difficulty in the above photographing technologies is how to perform image composition.

Generally, a mobile terminal may be shaken when the mobile terminal is hold by hands and used for photographing, thereby causing pixel misalignment when the image composition is performed. In related arts, in order to improve quality of a composite image, a fixture device, such as a tripod, may be used to fix the mobile terminal. However, carrying the fixture device may influence photographing convenience and photographing experience.

Embodiments of the present disclosure provide a method for compositing a plurality of images, a device for compositing a plurality of images, a mobile terminal, an electronic device and a non-transitory computer storage medium.

The method for compositing a plurality of images includes acquiring a first exposure time t required for current photographing, and dividing the first exposure time t into N segments, where N is M power of <NUM> and M is a positive integer; controlling by a micro-electro-mechanical system MEMS, an image sensor to move clockwise or counterclockwise according to a step length of a preset number of pixels, and controlling the image sensor to expose for a second exposure time t/N after each movement of the image sensor according to the preset number of pixels, to acquire N images; and compositing the N images to obtain a composite picture.

The device for compositing a plurality of images includes an acquisition module, configured to acquire a first exposure time t required for current photographing, and divide the first exposure time t into N segments, where N is M power of <NUM> and M is a positive integer; a processing module, configured to control via a micro-electro-mechanical system MEMS, an image sensor to move clockwise or counterclockwise according to a step length of a preset number of pixels, and control the image sensor to expose for a second exposure time t/N after each movement of the image sensor according to the preset number of pixels, to acquire N images; and a composition module, configured to composite the N images to obtain a composite picture.

The mobile terminal includes the device for compositing a plurality of images described above.

The electronic device includes a housing, a processor, a memory, a circuit board and a power circuity, wherein the circuit board is arranged in a space enclosed by the housing; the processor and the memory are arranged on the circuit board; the power circuity is configured to provide power to various circuities and components of the mobile terminal; the memory is configured to store executable program codes; the processor is configured to run programs corresponding to the executable computer codes by reading the executable program codes stored in the memory, to perform the method for compositing a plurality of images described above.

The non-transitory computer storage medium has one or more programs stored thereon. When the one or more programs are executed by a device, the device is configured to execute the method for compositing a plurality of images described above.

<FIG> is a flow chart illustrating a method for compositing a plurality of images according to an embodiment of the present disclosure. It should be explained that, the method for compositing a plurality of images may be applicable to a mobile terminal including the imaging component. The mobile terminal may be for example a hardware device having various operation systems, such as a phone, a tablet computer or the like.

As illustrated in <FIG>, the method for compositing a plurality of images may include the followings.

In block <NUM>, a first exposure time t required for current photographing is acquired, and the first exposure time t is divided into N segments.

N is M power of <NUM>, where M is a positive integer.

It should be explained that, N is a value set in advance according to pixel requirements. For example, the number of pixels of a camera included in a smart phone is <NUM> million. When it is required to provide an image having <NUM> million pixels, N is <NUM> and M is correspondingly <NUM>.

It should be explained that, N may be set according to requirements of an application scenario. For example, N may be <NUM>.

In block <NUM>, an image sensor is controlled by the MEMS to move clockwise or counterclockwise according to a step length of a preset number of pixels, and the image sensor is controlled to expose for a second exposure time t/N after each movement of the image sensor according to a preset number of pixels, to acquire N images.

It should be understood that, the MEMS is moveable. For example, the MEMS is connected to a driving circuity and moves under driven of a driving voltage outputted by the driving circuity.

The preset number of pixels is set in advance. For example, the preset number of pixels may include one pixel. That is to say, the MEMS controls the image sensor to move clockwise or counterclockwise by taking the one pixel as the step length.

It should be explained that, the number of movements of the image sensor controlled by the MEMS is related to N.

The one pixel is taken as an example to illustrate that the MEMS controls the image sensor to move in combination with <FIG>. Assuming that N is <NUM>, i.e., the first exposure time t is divided into <NUM>, and the second exposure time is correspondingly t/<NUM>. When the image sensor is located at an initial position <NUM>, the MEMS controls the images sensor to expose for the second exposure time t/<NUM> for once, to acquire a first image. The MEMS controls the image sensor to move one pixel rightwards, such that the image sensor is located at a position <NUM>. The image sensor is exposed again for the second exposure time t/<NUM> for once, to acquire a second image. Afterwards, the MEMS controls the image sensor to move one pixel from the position <NUM> downwards, such that the image sensor is located at a position <NUM>. The image sensor is exposed again for the second exposure time t/<NUM> for once, to acquire a third image. The MEMS controls the image sensor to move one pixel from the position <NUM> leftwards, such that the image sensor is located at a position <NUM>. The image sensor is exposed again for the second exposure time t/<NUM> for once, to acquire a fourth image. In addition, it should be understood that, when the MEMS controls the image sensor to move one pixel from the position <NUM> upwards, the image sensor is located at the initial position <NUM> again.

In block <NUM>, the N images are composited to obtain a composite picture.

After the N images are acquired, the plurality of images are composited using a principle of multi-image composition, to provide the composite picture having a high quality to the user, thereby satisfying a quality requirement to the picture of the user.

With the method for compositing a plurality of images according to embodiments of the present disclosure, when it is required to composite a plurality of captured images, the first exposure time t required for current photographing is acquired, and the first exposure time t is divided into N segments. The MEMS controls the image sensor to move clockwise or counterclockwise according to the step length of the preset number of pixels, and controls the image sensor to expose for the second exposure time t/N after each movement of the image sensor according to the preset number of pixels, to acquire N images. The N images are composited to obtain the composite picture. Therefore, by controlling the movement of the image sensor via the MEMS, the shakiness during the photographing is reduced, thereby further improving the quality of each image captured and improving an imaging quality of the composite picture.

<FIG> is a flow chart illustrating a method for compositing a plurality of images according to another embodiment of the present disclosure. It should be explained that, the method for compositing a plurality of images may be applied to a mobile terminal having an imaging component. The mobile terminal may be a hardware device having various operation systems, such as a phone, a tablet computer or the like.

As illustrated in <FIG>, the method for compositing a plurality of images includes the followings.

In block <NUM>, a first exposure time t required for current photographing is acquired and the first exposure time t is divided into N segments.

It should be explained that, N is a value set in advance according to pixel requirements. For example, the number of pixels of a camera included in a smart phone is <NUM> million. When it is required to provide an image having <NUM> million pixels, N is <NUM> and M is <NUM> correspondingly.

In block <NUM>, the MEMS controls the image sensor to move clockwise or counterclockwise according to a step length of a preset number of pixels, and controls the image sensor to expose for a second exposure time t/N after each movement of the image sensor based on the preset number of pixels, to acquire N images.

It should be explained that, the MEMS is moveable. For example, the MEMS is connected to a driving circuity and moves under driven of a driving voltage outputted by the driving circuity.

It should be explained that, the number of movements of image sensor controlled by the MEMS is related to N.

The movement of the image sensor controlled by the MEMS is described in combination with <FIG>. Assuming that N is <NUM>, i.e., the first exposure time t is divided into <NUM> segments, and the second exposure time is correspondingly t/<NUM>. When the image sensor is located at an initial position <NUM>, the MEMS controls the images sensor to expose for the second exposure time t/<NUM> for once, to acquire a first image. The MEMS controls the image sensor to move one pixel rightwards, such that the image sensor is located at a position <NUM>. The image sensor is exposed again for the second exposure time t/<NUM> for once, to acquire a second image. Afterwards, the MEMS controls the image sensor to move one pixel from the position <NUM> downwards, such that the image sensor is located at a position <NUM>. The image sensor is exposed again for the second exposure time t/<NUM> for once, to acquire a third image. The MEMS controls the image sensor to move one pixel from the position <NUM> leftwards, such that the image sensor is located at a position <NUM>. The image sensor is exposed again for the second exposure time t/<NUM> for once, to acquire a fourth image. In addition, it should be understood that, when the MEMS controls the image sensor to move one pixel from the position <NUM> upwards, the image sensor is located at the initial position <NUM> again.

In block <NUM>, an alignment rule of the N images is determined according to a movement rule that the MEMS controls the image sensor to move, and the N images are aligned according to the alignment rule.

In at least one embodiment, after the N images are acquired, the alignment rule of the N images is determined according to the movement rule that the MEMS controls the image sensor to move.

For example, in a case that N is <NUM>, after the MEMS controls the image sensor to move according to the movement rule illustrated in <FIG> to acquire four images, when the first image, the second image, the third image and the fourth image are composited. For the first image and the second image, the first image moves one pixel leftwards such that the first image and the second image are aligned to each other. For the first image and the third image, the third image moves one pixel upwards and moves one pixel leftwards, such that the first image and the third image are aligned to each other. For the first image and the fourth image, the fourth image moves one pixel upwards, such that the first image and the fourth image are aligned to each other.

In block <NUM>, for each pixel position in the N images aligned, contents of the current pixels in the N images are compared, and pixel composition is performed based on a comparison result to generate the composition picture.

In at least one embodiment, for each pixel position in the N images aligned, it is determined whether each of matching degrees between the contents of N current pixels exceeds a preset threshold. When each of the matching degrees exceeds the preset threshold, the N current pixels are superimposed.

That is to say, for the current pixel positions in the four images, the contents of the N current pixels are compared to each other. The N current pixels are superimposed directly when determining that differences between contents of the N current pixels are not significant, such that the N current pixels are composited into a single pixel.

In an embodiment of the present disclosure, when it is determined that any of the matching degrees between the contents of the N current pixels does not exceed the preset threshold, a first current pixel having a maximum difference from other current pixels is determined from the N current pixels. The first current pixel is replaced with one of the other current pixels, and the other current pixels and the replaced first current pixel are superimposed. Therefore, an influence on the imaging quality of the pixel after the image composition caused by the pixel having content with the greatest difference at the same position may be removed.

That is to say, for the N current pixels, when there is a pixel having a greatest difference from the other pixels, the pixel is replaced with one of other pixels, such that the other pixels and the replaced pixel are superimposed.

It should be explained that, a composition process for each pixel in the N images is similar to the composition process for the current pixels, which is not elaborated herein.

It can be seen from the above, during the composition process of the N images in embodiments, the alignment rule of the N images is determined according to the movement rule of the image sensor controlled by the MEMS. The N images are aligned according to the alignment rule, and the pixel composition is performed on the aligned N images, to generate the composite picture. Compared to a method that an alignment mode is determined by a calculation manner, a computation amount of the composition process of the N images is significantly reduced and the time required for compositing the N images is reduced, thereby improving efficiency of compositing the N images.

With the method for compositing a plurality of images according to embodiments of the present disclosure, when it is required to composite a plurality of captured images, the first exposure time t required for current photographing is acquired, and the first exposure time t is divided into N segments. The MEMS controls the image sensor to move clockwise or counterclockwise according to the step length of the preset number of pixels, and controls the image sensor to expose for the second exposure time t/N after each movement of the image sensor according to the preset number of pixels, to acquire N images. The alignment rule of the N images is determined according to movement rule of the image sensor controlled by the MEMS. The N images are aligned according to the alignment rule. For each pixel position in the aligned N images, the contents of the current pixels in the N images are compared to each other. The pixels are composited according to a comparison result, to acquire the composite picture. Therefore, by controlling the movement of the image sensor via the MEMS, shakiness during the photographing is reduced. In addition, when the N images are composited, the alignment rule of the N images may be determined rapidly according to the movement rule of the image sensor controlled by the MEMS, time required for compositing the N images is reduced, thereby improving efficiency of compositing the N images and improving an imaging quality of the composite picture.

In order to implement the above embodiments, the present disclosure further provides a device for composite a plurality of images according to an embodiment of the present disclosure.

<FIG> is a block diagram illustrating a device for compositing a plurality of images according to an embodiment of the present disclosure.

As illustrated in <FIG>, a device for compositing a plurality of images according to embodiments of the present disclosure may include an acquisition module <NUM>, a processing module <NUM> and a composition module <NUM>.

The acquisition module <NUM> is configured to acquire a first exposure time t required for current photographing and divide the first exposure time t into N segments.

The processing module <NUM> is configured to control an image sensor to move clockwise or counterclockwise according to a step length of a preset number of pixels via an MEMS, and control the image sensor to expose for the second exposure time t/N after each movement of the image sensor according to the preset number of pixels, to acquire N images.

The preset number of pixels is set in advance according to requirements of a scenario. For example, the preset number of pixels may include one pixel.

The composition module <NUM> is configured to composite the N images to acquire a composite picture.

It should be explained that, explanations and descriptions made to embodiments of the method for compositing a plurality of images may be applicable to the device for compositing a plurality of images according to embodiments, and implementation principles thereof are similar, which are not elaborated herein.

In an embodiment of the present disclosure, on the basis of the embodiment illustrated in <FIG>, as illustrated in <FIG>, the composition module <NUM> includes an alignment unit <NUM> and a composition unit <NUM>.

The alignment unit <NUM> is configured to determine an alignment rule of the N images according to a movement rule of the image sensor controlled by the MEMS, and to align the N images according to the alignment rule.

The composition unit <NUM> is configured to, for each pixel position in the N images aligned, to compare contents of current pixels in the N images, and to perform pixel composition based on a comparison result.

In an embodiment of the present disclosure, the composition unit <NUM> is configured to determine whether each of matching degrees between the contents of N current pixels exceeds a preset threshold, and to superimpose the N current pixels when each of the matching degrees exceeds the preset threshold.

In an embodiment of the present disclosure, as illustrated in <FIG>, the above composition module <NUM> may further include a processing unit <NUM>.

The processing unit <NUM> is configured to determine a first current pixel having a maximum difference from other current pixels in the N current pixels when determining that any of the matching degrees between the contents of N current pixels does not exceed the preset threshold, and to replace the first current pixel with one of the other current pixels and to superimpose the other current pixels and the replaced first current pixel.

In order to implement the above embodiments, the present disclosure further provides a mobile terminal.

The mobile terminal includes the device for compositing a plurality of images according to embodiments of a second aspect of the present disclosure.

With the mobile terminal according to embodiments of the present disclosure, when it is required to composite a plurality of captured images, the first exposure time t required for current photographing is acquired, and the first exposure time t is divided into N segments. The MEMS controls the image sensor to move clockwise or counterclockwise according to the step length of the preset number of pixels, and controls the image sensor to expose for the second exposure time t/N after each movement of the image sensor according to the preset number of pixels, to acquire N images. The N images are composited to obtain the composite picture. Therefore, by controlling the movement of the image sensor via the MEMS, the shakiness during the photographing is reduced, thereby further improving the quality of each image captured and improving an imaging quality of the composite picture.

In order to achieve the above embodiments, the preset disclosure further provides a mobile terminal.

<FIG> is a diagram schematic illustrating a mobile terminal <NUM> according to an embodiment of the present disclosure.

As illustrated in <FIG>, the mobile terminal <NUM> includes a housing <NUM>, a processor <NUM>, a memory <NUM>, a circuit board <NUM> and a power circuity <NUM>. The circuit board <NUM> is arranged in a space enclosed by the housing <NUM>. The processor <NUM> and the memory <NUM> are arranged on the circuit board <NUM>. The power circuity <NUM> is configured to provide power to various circuities and components of the mobile terminal <NUM>. The memory <NUM> is configured to store executable program codes. The processor <NUM> is configured to run programs corresponding to the executable computer codes by reading the executable program codes stored in the memory <NUM>, to execute the followings.

In block <NUM>', a first exposure time t required for current photographing is acquired and the first exposure time t is divided into N segments.

In block <NUM>', the image sensor is controlled to move clockwise or counterclockwise according to a step length of a preset number of pixels by the MEMS, and the image sensor is controlled to expose for a second exposure time t/N after each movement of the image sensor according to a preset number of pixels, to acquire N images.

The movement of the image sensor controlled by the MEMS is described in combination with <FIG>. Assuming that N is <NUM>, i.e., the first exposure time t is divided into <NUM>, and the second exposure time is correspondingly t/<NUM>. When the image sensor is located at an initial position <NUM>, the MEMS controls the images sensor to expose for the second exposure time t/<NUM> for once, to acquire a first image. The MEMS controls the image sensor to move one pixel rightwards, such that the image sensor is located at a position <NUM>. The image sensor is exposed again for the second exposure time t/<NUM> for once, to acquire a second image. Afterwards, the MEMS controls the image sensor to move one pixel from the position <NUM> downwards, such that the image sensor is located at a position <NUM>. The image sensor is exposed again for the second exposure time t/<NUM> for once, to acquire a third image. The MEMS controls the image sensor to move one pixel from the position <NUM> leftwards, such that the image sensor is located at a position <NUM>. The image sensor is exposed again for the second exposure time t/<NUM> for once, to acquire a fourth image. In addition, it should be understood that, when the MEMS controls the image sensor to move one pixel from the position <NUM> upwards, the image sensor is located at the initial position <NUM> again.

In block <NUM>', the N images are composited to obtain a composite picture.

After the N images are acquired, the plurality of images are composited using a principle of multi-image composition, to provide the composite picture having a high quality to the user, thereby satisfying a quality requirement to the image of the user.

In addition, terms "first" and "second" are only used for purposes of description and are not intended to indicate or imply relative importance or the number of technical features. In addition, the feature defined with "first" and "second" may explicitly or implicitly comprises at least one this feature. In the description of the present disclosure, the term "a plurality of" means at least two, such as two, three or the like, unless specified otherwise.

Any process or method described in a flow chart or described herein in other ways may be understood to include one or more modules, segments or portions of codes of executable instructions for achieving specific logical functions or steps in the process, and the scope of a preferred embodiment of the present disclosure includes other implementations, in which the order of execution may be different from that which is depicted or discussed, including executing functions in a substantially simultaneous manner or in an opposite order according to the related functions, which should be understood by those skilled in the art of the embodiments of the present disclosure.

The logic and/or steps described in other manners herein or shown in the flow chart, for example, a particular sequence table of executable instructions for realizing the logical function, may be specifically achieved in any computer readable medium to be used by the instruction execution system, device or equipment (such as the system based on computers, the system comprising processors or other systems capable of obtaining the instruction from the instruction execution system, device and equipment and executing the instruction), or to be used in combination with the instruction execution system, device and equipment. As to the specification, "the computer readable medium" may be any device adaptive for including, storing, communicating, propagating or transferring programs to be used by or in combination with the instruction execution system, device or equipment. More specific examples of the computer readable medium comprise but are not limited to (a non-exhaustive list): an electronic connection (IPM overcurrent protection circuit) with one or more wires, a portable computer enclosure (a magnetic device), a random access memory (RAM), a read only memory (ROM), an erasable programmable read-only memory (EPROM or a flash memory), an optical fiber device and a portable compact disk read-only memory (CDROM). In addition, the computer readable medium may even be a paper or other appropriate medium capable of printing programs thereon, this is because, for example, the paper or other appropriate medium may be optically scanned and then edited, decrypted or processed with other appropriate methods when necessary to obtain the programs in an electric manner, and then the programs may be stored in the computer memories.

It should be understood that each part of the implementations of the present disclosure may be realized by the hardware, software, firmware or their combination. In the above implementations, a plurality of steps or methods may be realized by the software or firmware stored in the memory and executed by the appropriate instruction execution system. For example, if it is realized by the hardware, likewise in another embodiment, the steps or methods may be realized by one or a combination of the following techniques known in the art: a discrete logic circuit having a logic gate circuit for realizing a logic function of a data signal, an application-specific integrated circuit having an appropriate combination logic gate circuit, a programmable gate array (PGA), a field programmable gate array (FPGA), etc..

Those skilled in the art shall understand that all or parts of the steps in the above exemplifying method of the present disclosure may be achieved by commanding the related hardware with programs. The programs may be stored in a computer readable storage medium, and the programs include one or a combination of the steps in the method embodiments of the present disclosure when running on a computer.

In addition, each function cell of the embodiments of the present disclosure may be integrated in a processing module, or these cells may be separate physical existence, or two or more cells are integrated in a processing module. The integrated module may be realized in a form of hardware or in a form of software function modules. When the integrated module is realized in a form of software function module and is sold or used as a standalone product, the integrated module may be stored in a computer readable storage medium.

Claim 1:
A method for compositing a plurality of images, comprising:
acquiring (<NUM>; <NUM>) a first exposure time t required for current photographing, and dividing the first exposure time t into N segments, where N is M power of <NUM> and M is a positive integer;
controlling (<NUM>; <NUM>) by a micro-electro-mechanical system MEMS, an image sensor according to a movement rule of moving leftwards, rightwards, upwards or downwards according to a step length of a preset number of pixels, and controlling the image sensor to expose for a second exposure time t/N after each movement of the image sensor according to the preset number of pixels, to acquire N images; and
compositing (<NUM>) the N images to obtain a composite picture, comprising:
determining (<NUM>) an alignment rule of the N images according to the movement rule, and aligning the N images according to the alignment rule; and
for each pixel position in the N images aligned, determining whether all matching degrees among N current pixels at the pixel position exceed a preset threshold, said matching degrees being determined by comparing the N current pixels with each other, and superimposing the N current pixels only if all said matching degrees exceed the preset threshold.