CROSS-REFERENCE TO RELATED APPLICATIONS

The present application claims priority under 35 U.S.C. § 119 to Japanese Patent Application No., 2019-167364 filed on Sep. 13, 2019. The above application is hereby expressly incorporated by reference, in its entirety, into the present application.

BACKGROUND

1. Technical Field

The present disclosure relates to an image processing apparatus, an imaging apparatus, an image processing method, and an image processing program.

2. Description of the Related Art

In general, technologies for extracting a part of a display image as an extraction image from the display image are known. For example, WO2006/033178A discloses a technology for extracting an image as a compositing image from an extraction target image including a background image and an image of a non-background that is an extraction target based on a silhouette image used as a mask, and compositing the extracted compositing image in another background image.

In the technology disclosed in WO2006/033178A, separation between the background and the non-background (extraction target image) is performed based on a difference in pixel value between the background image and the extraction target image. In the technology disclosed in WO2006/033178A, superimposition of noise on the silhouette image is suppressed, and superimposition of noise on the extraction target image is suppressed by allowing a user to set a threshold value for separating the background and the non-background.

SUMMARY

However, in the technology disclosed in WO2006/033178A, noise that the user desires to remove may not be appropriately removed. For example, in a case where the difference in pixel value between the background image and the extraction target image varies depending on a part in which the extraction target image and the background image are in contact, separation between the background and the non-background may not be appropriately performed, and noise may be superimposed on the extraction target image. In the case of sufficiently removing the noise from the extraction target image in WO2006/033178A, an operation of the user for the removal may become complicated.

The present disclosure is conceived in view of the above matter, and an object thereof is to provide an image processing apparatus, an imaging apparatus, an image processing method, and an image processing program capable of improving operability of a user for removing noise included in an extraction image extracted from a display image and easily removing the noise.

In order to achieve the above object, an image processing apparatus of a first aspect of the present disclosure comprises an extraction unit that extracts a part of a display image displayed on a display unit, as an extraction image, and a display control unit that, in a case where a plurality of regions having different areas are included in the extraction image, removes at least one of the plurality of regions in order of area based on an operation amount of an operation input by a user.

According to the image processing apparatus of a second aspect of the present disclosure, in the image processing apparatus of the first aspect, a compositing unit that sets the extraction image displayed on the display unit as a compositing target image and generates a composite image in which the compositing target image is composited in a selection image selected by the user, is further comprised, in which the display control unit displays the composite image on the display unit.

According to the image processing apparatus of a third aspect of the present disclosure, in the image processing apparatus of the first aspect or the second aspect, the display control unit further displays an operation unit for allowing the user to input the operation on the display unit.

According to the image processing apparatus of a fourth aspect of the present disclosure, in the image processing apparatus of any one of the first aspect to the third aspect, the display control unit further removes a part or an entirety of a region as instructed by the user in the extraction image.

According to the image processing apparatus of a fifth aspect of the present disclosure, in the image processing apparatus of any one of the first aspect to the fourth aspect, the display control unit displays a specifying frame for specifying a partial region in the display image and a color designation mark for designating a reference color from colors included in an image in the specifying frame, in superposition with the display image, and the extraction unit extracts an image corresponding to the reference color designated by the color designation mark from the image in the specifying frame, as the extraction image.

According to the image processing apparatus of a sixth aspect of the present disclosure, in the image processing apparatus of the fifth aspect, the color designation mark is displayed in the specifying frame, and a relative positional relationship between the specifying frame and the color designation mark is predetermined.

According to the image processing apparatus of a seventh aspect of the present disclosure, in the image processing apparatus of the fifth aspect or the sixth aspect, a first reception unit that receives a size change instruction for enlarging or reducing the specifying frame, is further comprised, in which the display control unit performs control for changing a size of the specifying frame in accordance with the size change instruction received by the first reception unit.

According to the image processing apparatus of an eighth aspect of the present disclosure, in the image processing apparatus of any one of the fifth aspect to the seventh aspect, a second reception unit that receives a movement instruction for moving a position of the specifying frame, is further comprised, in which the display control unit performs control for moving the position of the specifying frame in accordance with the movement instruction received by the second reception unit.

According to the image processing apparatus of a ninth aspect of the present disclosure, in the image processing apparatus of any one of the fifth aspect to the eighth aspect, the display control unit further displays an indicator that has a larger area than the color designation mark and that represents the reference color.

According to the image processing apparatus of a tenth aspect of the present disclosure, in the image processing apparatus of any one of the fifth aspect to the ninth aspect, the extraction unit quantifies gradation of an entire image in the specifying frame and extracts an image in which a numerical value of gradation is within a reference color range including a numerical value of gradation to which the reference color corresponds, as the extraction image.

According to the image processing apparatus of an eleventh aspect of the present disclosure, in the image processing apparatus of the tenth aspect, a setting unit for allowing the user to set the reference color range, is further comprised.

An imaging apparatus of a twelfth aspect of the present disclosure comprises an imaging unit that images a subject, a display unit that displays an image captured by the imaging unit, and the image processing apparatus of any one of the first aspect to the eleventh aspect.

According to the imaging apparatus of a thirteenth aspect of the present disclosure, in the imaging apparatus of the twelfth aspect, live view display of a display image is performed on the display unit.

In order to achieve the above object, an image processing method executed by a computer of a fourteenth aspect of the present disclosure comprises extracting a part of a display image displayed on a display unit, as an extraction image, and in a case where a plurality of regions having different areas are included in the extraction image, removing at least one of the plurality of regions in order of area based on an operation amount of an operation input by a user.

In order to achieve the above object, an image processing program of a fifteenth aspect of the present disclosure causes a computer to execute a process, the process comprising extracting a part of a display image displayed on a display unit, as an extraction image, and in a case where a plurality of regions having different areas are included in the extraction image, removing at least one of the plurality of regions in order of area based on an operation amount of an operation input by a user.

An image processing apparatus of the present disclosure comprises a memory that stores a command to be executed by a computer, and a processor configured to execute the stored command, in which the processor extracts a part of a display image displayed on a display unit, as an extraction image, and removes at least one of a plurality of regions in order of area based on an operation amount of an operation input by a user in a case where the plurality of regions having different areas are included in the extraction image.

According to the present disclosure, the operability of the user for removing the noise included in the extraction image extracted from the display image is improved, and the noise can be easily removed.

