CN111084632A - Automatic exposure control method and device based on mask, storage medium and electronic equipment - Google Patents

Automatic exposure control method and device based on mask, storage medium and electronic equipment Download PDF

Info

Publication number
CN111084632A
CN111084632A CN201911252073.9A CN201911252073A CN111084632A CN 111084632 A CN111084632 A CN 111084632A CN 201911252073 A CN201911252073 A CN 201911252073A CN 111084632 A CN111084632 A CN 111084632A
Authority
CN
China
Prior art keywords
mask
gray
preset
selected area
pixel points
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911252073.9A
Other languages
Chinese (zh)
Other versions
CN111084632B (en
Inventor
唐重陈
黎国武
李文玉
易明军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sino Medical Device Technology Co ltd
Original Assignee
Sino Medical Device Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sino Medical Device Technology Co ltd filed Critical Sino Medical Device Technology Co ltd
Priority to CN201911252073.9A priority Critical patent/CN111084632B/en
Publication of CN111084632A publication Critical patent/CN111084632A/en
Application granted granted Critical
Publication of CN111084632B publication Critical patent/CN111084632B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B6/00Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
    • A61B6/54Control of apparatus or devices for radiation diagnosis
    • A61B6/542Control of apparatus or devices for radiation diagnosis involving control of exposure
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B6/00Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
    • A61B6/48Diagnostic techniques
    • A61B6/488Diagnostic techniques involving pre-scan acquisition
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B6/00Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
    • A61B6/54Control of apparatus or devices for radiation diagnosis
    • A61B6/545Control of apparatus or devices for radiation diagnosis involving automatic set-up of acquisition parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Medical Informatics (AREA)
  • Optics & Photonics (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • High Energy & Nuclear Physics (AREA)
  • Veterinary Medicine (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Public Health (AREA)
  • Pathology (AREA)
  • Radiology & Medical Imaging (AREA)
  • Physics & Mathematics (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The invention relates to an automatic exposure control method, an automatic exposure control device, a storage medium and electronic equipment based on a mask, wherein the automatic exposure control method comprises the following steps: s1, pre-exposing the shot object according to the preset exposure parameters to obtain an initial image; s2, acquiring a preset mask according to the shooting object and the initial image, and performing mask processing on the initial image to acquire a mask image, wherein the preset mask comprises a first selected area and a second selected area; s3, calculating first average gray-scale values of all pixel points of a second selected area in the mask image, and acquiring a pixel threshold according to the first average gray-scale values; s4, obtaining gray-scale values of all pixel points in the first selected area in the mask image, and obtaining the pixel points with the gray-scale values smaller than the pixel threshold as effective pixel points; s5, calculating second average gray-scale values of all effective pixel points as effective gray-scale values; and S6, acquiring a main exposure parameter according to the effective gray-scale value and the preset exposure parameter. The invention can acquire the optimal exposure parameters to acquire the optimal photographic image.

Description

Automatic exposure control method and device based on mask, storage medium and electronic equipment
Technical Field
The present invention relates to the field of image acquisition technologies, and in particular, to an automatic exposure control method and apparatus based on a mask, a storage medium, and an electronic device.
Background
In many image acquisition processes, for example, a digital mammography usually calculates an average value of a pre-exposure whole image to acquire a whole corresponding main exposure parameter, so that more areas not covered by a measured object are calculated into a gray value, the whole level of the average value is higher, the gray value of the measured object covered area cannot be accurately calculated, the setting of the main exposure parameter is seriously influenced, and the acquisition of a final measured object image is influenced.
Secondly, photographic equipment such as digital mammography can typically operate in a number of different photography modes, such as: the modes of different shooting areas such as point pressure shooting, puncture shooting, axillary pressure shooting, magnification shooting and the like are adopted, and the coverage area and the light blocking area of the measured object are flexible. It is also difficult to accurately calculate the gray scale value of the covered position of the object in the area.
Disclosure of Invention
The present invention is directed to provide a method, an apparatus, a storage medium, and an electronic device for automatic exposure control based on mask, which are directed to the above-mentioned drawbacks of the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows: a mask-based automatic exposure control method is constructed, and comprises the following steps:
s1, pre-exposing the shot object according to the preset exposure parameters to obtain a pre-exposed initial image;
s2, acquiring a preset mask according to the shooting object and the initial image, and performing mask processing on the initial image through the preset mask to acquire a mask image corresponding to the initial image, wherein the preset mask comprises a first selected area corresponding to the shooting object and a second selected area arranged at an interval with the first selected area;
s3, calculating first average gray-scale values of all pixel points corresponding to the second selected area in the mask image, and acquiring a pixel threshold according to the first average gray-scale values;
s4, obtaining gray-scale values of all pixel points corresponding to the first selected area in the mask image, and obtaining the pixel points with the gray-scale values smaller than the pixel threshold as effective pixel points;
s5, calculating second average gray-scale values of all effective pixel points and taking the second average gray-scale values as effective gray-scale values;
and S6, acquiring a main exposure parameter according to the effective gray scale value and the preset exposure parameter.
Preferably, the mask-based automatic exposure control method of the present invention further comprises:
s41, acquiring the occupation proportion of the effective pixel points in the first selected area, and confirming whether the occupation proportion meets a preset condition, if so, executing the step S5, and if not, executing the step S42;
and S42, obtaining a third average gray scale value of all pixel points corresponding to the first selected area in the mask image as the effective gray scale value, and executing the step S6.
Preferably, in the step S41, the occupancy ratio is greater than or equal to one eighth.
Preferably, in the step S2,
the first selection area comprises a plurality of mutually isolated first selection areas; and/or
The first selection area is arranged corresponding to the shooting object.
Preferably, in the step S3, the obtaining the pixel threshold according to the first average gray-scale value includes: and taking a half value of the first average gray-scale value as the pixel threshold value.
Preferably, in the step S6, the obtaining the main exposure parameter according to the effective gray scale value and the preset exposure parameter includes obtaining the main exposure parameter by using the following formula:
A=(B/C)*D;
wherein A is the main exposure parameter, B is a target gray scale value, C is the effective gray scale value, and D is the preset exposure parameter.
Preferably, the main exposure parameter comprises an exposure amount of the main exposure, and the preset exposure parameter comprises an exposure amount of the pre-exposure.
The invention also constructs an automatic exposure control device based on the mask, comprising:
the first processing unit is used for carrying out pre-exposure on the shot object according to preset exposure parameters to obtain an initial image after the pre-exposure;
the second processing unit is used for acquiring a preset mask according to the shot object and the initial image, and performing mask processing on the initial image through the preset mask to acquire a mask image corresponding to the initial image, wherein the preset mask comprises a first selected area corresponding to the shot object and a second selected area arranged at an interval with the first selected area;
the first calculation unit is used for calculating first average gray-scale values of all pixel points corresponding to the second selected area in the mask image and acquiring a pixel threshold value according to the first average gray-scale values;
the acquiring unit is used for acquiring gray-scale values of all pixel points corresponding to the first selected area in the mask image and acquiring pixel points with the gray-scale values smaller than the pixel threshold as effective pixel points;
the second calculation unit is used for calculating second average gray-scale values of all effective pixel points and taking the second average gray-scale values as effective gray-scale values;
and the third processing unit is used for acquiring a main exposure parameter according to the effective gray scale value and the preset exposure parameter.
The invention also constitutes a computer storage medium having stored thereon a computer program which, when executed by a processor, implements a mask-based automatic exposure control method as described in any of the above.
The invention also features an electronic device including a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement a mask-based automatic exposure control method according to any one of the above.
The mask-based automatic exposure control method, the mask-based automatic exposure control device, the storage medium and the electronic equipment have the following beneficial effects: the optimal exposure parameters can be acquired to acquire the optimal photographic image.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a flowchart of a mask-based automatic exposure control method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another embodiment of the mask-based automatic exposure control method of the present invention;
FIG. 3 is a logic diagram of an embodiment of an automatic exposure control device based on mask.
Detailed Description
For a more clear understanding of the technical features, objects and effects of the present invention, embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
As shown in fig. 1, in an embodiment of the mask-based automatic exposure control method of the present invention, the method includes:
s1, pre-exposing the shot object according to the preset exposure parameters to obtain a pre-exposed initial image; specifically, taking a digital mammography as an example, when an image of a measured object is shot, and the position of the measured object is correct, when the state preparation is completed, a preset exposure parameter for shooting the measured object may be set according to a characteristic parameter of the measured object, and a pre-exposed initial image of the measured object is obtained through the preset exposure parameter. The preset exposure parameters of the measured object can be acquired by entering an automatic exposure mode, so that the corresponding preset exposure parameters can be acquired through a full-automatic exposure mode, and full-automatic pre-exposure is performed through the preset exposure parameters. In some implementations, the preset exposure parameters may also be set according to empirical values, and when the empirical values are set, the type and the test position of the object to be tested may also be used as the setting basis of the empirical values.
S2, acquiring a preset mask according to the shot object and the initial image, and performing mask processing on the initial image through the preset mask to acquire a mask image corresponding to the initial image, wherein the preset mask comprises a first selected area corresponding to the shot object and a second selected area arranged at an interval with the first selected area; specifically, after the initial image is acquired, a corresponding preset mask is set according to the acquired initial image and the shooting object, and the mask can be in a pixel size of 1:1 proportion to the initial image. And carrying out masking processing on the initial image through the preset mask, thus obtaining a mask image corresponding to the initial image, wherein the formed mask image comprises a first selected area corresponding to the shooting object and a second selected area arranged at an interval with the first selected area, and the second selected area can be arranged far away from the first selected area in order to ensure that the first selected area and the second selected area can be better distinguished. In an embodiment the second selection may be located further away from the first selection near the edge of the initial image. The preset mask can be set according to the shooting object, for example, when mammography is performed, the preset mask can be pre-masked according to regional breast characteristics, that is, an appropriate preset mask is selected according to the size of the shooting object, so that the shooting object falls in the first selected area as much as possible. When the photographing device is determined, the photographing object is also determined, for example, when the photographing device is a digital mammography, the photographing object can be understood as performing mammography, and then preset masks corresponding to different breasts can be set according to the physical characteristics of the breasts. The initial image is obtained according to different shooting modes, such as spot pressure shooting, puncture shooting, axillary pressure shooting, magnification shooting, and the like, and the obtained initial image is also according to the difference of the shooting modes, and the obtained actual initial image needs to be fully considered when the preset mask is selected, or the shooting mode is determined according to the initial image so as to select the proper preset mask. It can be understood here that the obtained mask image actually includes three regions, where the first selected region and the second selected region are naked selected regions, and the first selected region and the second selected region are removed to be mask selected regions, which are regarded as backgrounds, and the mask selected regions are not processed in the subsequent processing process.
S3, calculating first average gray-scale values of all pixel points corresponding to the second selected area in the mask image, and acquiring a pixel threshold according to the first average gray-scale values; specifically, the second selection area and the first selection area are arranged at an interval, and the first selection area corresponds to the object to be measured, so that the second selection area can be understood as an area different from the object to be measured. At this time, an average value of all the pixel points in the second selection area, that is, a first average gray scale value, may be obtained, and then a pixel threshold value may be set according to the first average gray scale value. In order to avoid the influence caused by bad pixel points, the second selected area has at least 10 pixels.
S4, obtaining gray-scale values of all pixel points corresponding to the first selected area in the mask image, and obtaining the pixel points with the gray-scale values smaller than the pixel threshold as effective pixel points; specifically, pixel points in a first selected area in the mask image are processed to obtain gray-scale values of all the pixel points in the first selected area, the gray-scale value of each pixel point is compared with a pixel threshold value, the pixel points with the gray-scale values larger than or equal to the pixel threshold value are discarded, only the pixel points with the gray-scale values smaller than the pixel threshold value are obtained, and the pixel points are corresponding to effective pixel points. Therefore, all effective pixel points in the first selected area are obtained.
S5, calculating second average gray-scale values of all effective pixel points and taking the second average gray-scale values as effective gray-scale values; specifically, the average gray scale value of all the effective pixels obtained above, that is, the second average gray scale value, is calculated, and the second average gray scale value is taken as the effective gray scale value.
And S6, acquiring a main exposure parameter according to the effective gray-scale value and the preset exposure parameter. Specifically, after the effective gray scale value is obtained, the main exposure parameter can be obtained according to the preset exposure parameter corresponding to the effective gray scale value, so that the main exposure is performed by setting the main exposure parameter, and the best photographic image is obtained.
As shown in fig. 2, in another embodiment of the mask-based automatic exposure control method of the present invention, the method further includes:
s41, acquiring the occupation proportion of the effective pixel points in the first selected area, and confirming whether the occupation proportion meets a preset condition, if so, executing a step S5, and if not, executing a step S42;
s42, obtaining the third average gray-scale value of all the pixel points corresponding to the first selected area in the mask image as the effective gray-scale value, and executing the step S6.
Specifically, for the situation that the shooting object may completely block the second selected area, after all effective pixels in the first selected area are obtained, the occupation proportion of all the effective pixels in the first selected area is obtained, the occupation proportion is judged, when the occupation proportion meets the preset condition, it can be judged that the second selected area is not completely blocked by the shooting object at the moment, pixels corresponding to the second selected area in the mask image are actually pixels corresponding to the shooting object, and at the moment, step S5 is executed, namely, only the effective pixels in the first selected area are processed. When the occupation ratio does not meet the preset condition, it can be judged that the second selected area is completely shielded by the shot object at the moment, part of the pixel points corresponding to the second selected area in the mask image are actually the pixel points corresponding to the shot object, at the moment, the corresponding pixel points in the first selected area can be judged to be the pixel points which are all the shot object, at the moment, all the pixel points corresponding to the first selected area can be calculated to obtain the average gray level value, namely the third average gray level value, the third average gray level value is defined as the effective gray level value, and the step S6 is executed according to the effective gray level value to obtain the corresponding main exposure parameter.
In one embodiment, in step S41, the occupancy ratio is greater than or equal to one eighth. Specifically, the size of the first selected area may affect the ratio of the blocked portion of the photographic subject. And judging the occupation ratio, wherein the occupation ratio meeting the preset condition can be set to be that the number of the effective pixel points is more than or equal to one eighth of the number of all the pixel points in the first selection area, and the value of the occupation ratio can be selected according to the shot object.
In one embodiment, in step S2, the first selection area includes a plurality of first selection areas isolated from each other; in another embodiment, the first selection area is set corresponding to the photographic subject. Specifically, the first selection area may be a plurality of first selection areas isolated from each other according to a shooting mode of the shooting object. For example, in the case that the shooting mode of the digital mammography is the zoom spot-pressure shooting, images of a plurality of contact points may be acquired, and at this time, first selection regions may be respectively set for the plurality of contact points, and the setting of the first selection regions corresponds to the shooting object as much as possible, so as to ensure that the pixel points corresponding to the shooting object fall within the first selection regions as much as possible.
In one embodiment, in step S3, the obtaining the pixel threshold according to the first average gray-scale value includes: and taking a half value of the first average gray-scale value as a pixel threshold value. Specifically, the obtaining process of the pixel threshold may take a value of one half of the first average gray scale value. The pixel threshold can be obtained through clinical experiments, for example, the threshold needs to cover that a shot object larger than or equal to 5mm is not lost, a 5mm BR5050 test body membrane is used for placing the first selected area, and after exposure is carried out under clinical common conditions under the thickness, a measuring tool is used for respectively testing the gray-scale values of the first selected area and the second selected area. The ratio of the first selection area to the second selection area is the value of the pixel threshold.
In one embodiment, in step S6, the obtaining the main exposure parameter according to the effective gray scale value and the preset exposure parameter includes obtaining the main exposure parameter by using the following formula: a ═ B/C × D; wherein A is the main exposure parameter, B is the target gray scale value, C is the effective gray scale value, and D is the preset exposure parameter. Specifically, the target gray level is configured according to the selected detector component, and is a configurable constant; according to the formula, the optimal exposure parameter of the main exposure can be obtained.
Further, the main exposure parameter includes an exposure amount of the main exposure, and the preset exposure parameter includes an exposure amount of the pre-exposure. Specifically, on the above basis, the acquired main exposure parameters include the exposure amount of the main exposure, which is acquired based on the exposure amount of the pre-exposure.
In addition, an automatic exposure control device based on a mask according to the present invention includes:
the first processing unit 110 is configured to perform pre-exposure on a shot object according to a preset exposure parameter, and obtain an initial image after the pre-exposure;
a second processing unit 120, configured to obtain a preset mask according to the shot object and the initial image, and perform mask processing on the initial image through the preset mask to obtain a mask image corresponding to the initial image, where the preset mask includes a first selected area corresponding to the shot object and a second selected area spaced from the first selected area;
the first calculating unit 130 is configured to calculate first average gray-scale values of all pixel points corresponding to the second selected area in the mask image, and obtain a pixel threshold according to the first average gray-scale values;
the acquiring unit 140 is configured to acquire gray-scale values of all pixel points corresponding to the first selected area in the mask image, and acquire pixel points with gray-scale values smaller than a pixel threshold as effective pixel points;
the second calculating unit 150 is configured to calculate second average gray scale values of all the effective pixels and use the second average gray scale values as effective gray scale values;
and the third processing unit 160 is configured to obtain the main exposure parameter according to the effective gray scale value and the preset exposure parameter.
Specifically, the specific coordination operation process between the units of the automatic exposure control device based on the mask may specifically refer to the automatic exposure control method based on the mask, and is not described herein again.
In addition, an electronic device of the present invention includes a memory and a processor; the memory is used for storing a computer program; the processor is configured to execute a computer program to implement a mask-based automatic exposure control method as any of the above. In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as a computer software program. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed by an electronic device and executed to perform the above-described functions defined in the methods of embodiments of the present invention. The electronic equipment can be a terminal such as a notebook, a desktop, a tablet computer, a smart phone and the like, and can also be a server.
Further, a computer storage medium of the present invention has stored thereon a computer program that, when executed by a processor, implements the mask-based automatic exposure control method of any one of the above. In particular, it should be noted that the computer readable medium of the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
It is to be understood that the foregoing examples, while indicating the preferred embodiments of the invention, are given by way of illustration and description, and are not to be construed as limiting the scope of the invention; it should be noted that, for those skilled in the art, the above technical features can be freely combined, and several changes and modifications can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention; therefore, all equivalent changes and modifications made within the scope of the claims of the present invention should be covered by the claims of the present invention.

Claims (10)

1. An automatic exposure control method based on mask is characterized by comprising the following steps:
s1, pre-exposing the shot object according to the preset exposure parameters to obtain a pre-exposed initial image;
s2, acquiring a preset mask according to the shooting object and the initial image, and performing mask processing on the initial image through the preset mask to acquire a mask image corresponding to the initial image, wherein the preset mask comprises a first selected area corresponding to the shooting object and a second selected area arranged at an interval with the first selected area;
s3, calculating first average gray-scale values of all pixel points corresponding to the second selected area in the mask image, and acquiring a pixel threshold according to the first average gray-scale values;
s4, obtaining gray-scale values of all pixel points corresponding to the first selected area in the mask image, and obtaining the pixel points with the gray-scale values smaller than the pixel threshold as effective pixel points;
s5, calculating second average gray-scale values of all effective pixel points and taking the second average gray-scale values as effective gray-scale values;
and S6, acquiring a main exposure parameter according to the effective gray scale value and the preset exposure parameter.
2. The mask-based automatic exposure control method according to claim 1, further comprising:
s41, acquiring the occupation proportion of the effective pixel points in the first selected area, and confirming whether the occupation proportion meets a preset condition, if so, executing the step S5, and if not, executing the step S42;
and S42, obtaining a third average gray scale value of all pixel points corresponding to the first selected area in the mask image as the effective gray scale value, and executing the step S6.
3. The mask-based automatic exposure control method according to claim 2, wherein in the step S41, the occupancy ratio is one-eighth or more.
4. The mask-based automatic exposure control method according to claim 1, wherein, in the step S2,
the first selection area comprises a plurality of mutually isolated first selection areas; and/or
The first selection area is arranged corresponding to the shooting object.
5. The mask-based automatic exposure control method according to claim 1, wherein in the step S3, the obtaining the pixel threshold value according to the first average gray-scale value comprises: and taking a half value of the first average gray-scale value as the pixel threshold value.
6. The mask-based automatic exposure control method according to claim 1, wherein in step S6, the obtaining the main exposure parameter according to the effective gray scale value and the preset exposure parameter comprises obtaining the main exposure parameter by using the following formula:
A=(B/C)*D;
wherein A is the main exposure parameter, B is a target gray scale value, C is the effective gray scale value, and D is the preset exposure parameter.
7. The mask-based automatic exposure control method according to claim 6, wherein the main exposure parameter comprises an exposure amount of the main exposure, and the preset exposure parameter comprises an exposure amount of the pre-exposure.
8. An automatic exposure control device based on a mask, comprising:
the first processing unit is used for carrying out pre-exposure on the shot object according to preset exposure parameters to obtain an initial image after the pre-exposure;
the second processing unit is used for acquiring a preset mask according to the shot object and the initial image, and performing mask processing on the initial image through the preset mask to acquire a mask image corresponding to the initial image, wherein the preset mask comprises a first selected area corresponding to the shot object and a second selected area arranged at an interval with the first selected area;
the first calculation unit is used for calculating first average gray-scale values of all pixel points corresponding to the second selected area in the mask image and acquiring a pixel threshold value according to the first average gray-scale values;
the acquiring unit is used for acquiring gray-scale values of all pixel points corresponding to the first selected area in the mask image and acquiring pixel points with the gray-scale values smaller than the pixel threshold as effective pixel points;
the second calculation unit is used for calculating second average gray-scale values of all effective pixel points and taking the second average gray-scale values as effective gray-scale values;
and the third processing unit is used for acquiring a main exposure parameter according to the effective gray scale value and the preset exposure parameter.
9. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements a mask-based automatic exposure control method according to any one of claims 1-7.
10. An electronic device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the mask-based automatic exposure control method according to any one of claims 1 to 7.
CN201911252073.9A 2019-12-09 2019-12-09 Automatic exposure control method and device based on mask, storage medium and electronic equipment Active CN111084632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911252073.9A CN111084632B (en) 2019-12-09 2019-12-09 Automatic exposure control method and device based on mask, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911252073.9A CN111084632B (en) 2019-12-09 2019-12-09 Automatic exposure control method and device based on mask, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111084632A true CN111084632A (en) 2020-05-01
CN111084632B CN111084632B (en) 2022-06-03

Family

ID=70394745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911252073.9A Active CN111084632B (en) 2019-12-09 2019-12-09 Automatic exposure control method and device based on mask, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111084632B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117409263A (en) * 2023-12-15 2024-01-16 成都时代星光科技有限公司 Unmanned aerial vehicle automatic image correction guiding landing method and computer storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6487271B1 (en) * 1999-07-19 2002-11-26 Ge Medical Systems Sa Method and system of saturation management of radiographic image
CN104078028A (en) * 2014-06-27 2014-10-01 联想(北京)有限公司 Screen brightness adjusting method and electronic equipment
CN104146724A (en) * 2014-08-29 2014-11-19 重庆邮电大学 Digital X-ray machine automatic exposure control method and device
CN104367331A (en) * 2013-08-15 2015-02-25 深圳市蓝韵实业有限公司 Full-digital automatic exposure method for digital mammary gland X-ray machine
US20150237248A1 (en) * 2014-02-20 2015-08-20 Asustek Computer Inc. Image processing method and image processing device
CN106682620A (en) * 2016-12-28 2017-05-17 北京旷视科技有限公司 Human face image acquisition method and device
CN108401457A (en) * 2017-08-25 2018-08-14 深圳市大疆创新科技有限公司 A kind of control method of exposure, device and unmanned plane
CN109745060A (en) * 2017-11-06 2019-05-14 上海西门子医疗器械有限公司 Automatic exposure control method, storage medium and the Medical Devices of X-ray imaging

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6487271B1 (en) * 1999-07-19 2002-11-26 Ge Medical Systems Sa Method and system of saturation management of radiographic image
CN104367331A (en) * 2013-08-15 2015-02-25 深圳市蓝韵实业有限公司 Full-digital automatic exposure method for digital mammary gland X-ray machine
US20150237248A1 (en) * 2014-02-20 2015-08-20 Asustek Computer Inc. Image processing method and image processing device
CN104078028A (en) * 2014-06-27 2014-10-01 联想(北京)有限公司 Screen brightness adjusting method and electronic equipment
CN104146724A (en) * 2014-08-29 2014-11-19 重庆邮电大学 Digital X-ray machine automatic exposure control method and device
CN106682620A (en) * 2016-12-28 2017-05-17 北京旷视科技有限公司 Human face image acquisition method and device
CN108401457A (en) * 2017-08-25 2018-08-14 深圳市大疆创新科技有限公司 A kind of control method of exposure, device and unmanned plane
CN109745060A (en) * 2017-11-06 2019-05-14 上海西门子医疗器械有限公司 Automatic exposure control method, storage medium and the Medical Devices of X-ray imaging

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王浩 等: "基于DM6446的数字X光机自动曝光控制系统设计和实现", 《生命科学仪器》 *
赵芳 等: "基于灰度图像的曝光量估计方法", 《应用科技》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117409263A (en) * 2023-12-15 2024-01-16 成都时代星光科技有限公司 Unmanned aerial vehicle automatic image correction guiding landing method and computer storage medium
CN117409263B (en) * 2023-12-15 2024-04-05 成都时代星光科技有限公司 Unmanned aerial vehicle automatic image correction guiding landing method and computer storage medium

Also Published As

Publication number Publication date
CN111084632B (en) 2022-06-03

Similar Documents

Publication Publication Date Title
US11109945B2 (en) Method of evaluating an orthodontic aligner
KR101686926B1 (en) Image blurring method and apparatus, and electronic device
EP3785603A1 (en) Machine learning-based fundus image detection method, apparatus, and system
US20210042912A1 (en) Method, Apparatus and System for Detecting Fundus Image Based on Machine Learning
CN107909554B (en) Image noise reduction method and device, terminal equipment and medium
JP6845790B2 (en) Position estimation device, position estimation method and terminal device
CN111084632B (en) Automatic exposure control method and device based on mask, storage medium and electronic equipment
CN109859216B (en) Distance measurement method, device and equipment based on deep learning and storage medium
CN111383278A (en) Calibration method, device and equipment for double cameras
CN109405735B (en) Three-dimensional scanning system and three-dimensional scanning method
CN112070682B (en) Method and device for compensating image brightness
CN111340042A (en) Object contour recognition method, device, equipment and storage medium
CN111062984B (en) Method, device, equipment and storage medium for measuring area of video image area
CN106204548B (en) Image distinguishing method and device
CN112598610A (en) Depth image obtaining method and device, electronic equipment and storage medium
WO2021114039A1 (en) Masking-based automatic exposure control method and apparatus, storage medium, and electronic device
US20170234765A1 (en) Systems and methods for estimating modulation transfer function in an optical system
CN113538590B (en) Calibration method and device of zoom camera, terminal equipment and storage medium
CN112883944B (en) Living body detection method, model training method, device, storage medium and equipment
CN111435080B (en) Water level measuring method, device and system
CN111213372B (en) Evaluation of dynamic range of imaging device
CN109151254B (en) Black balance calibration method and device
CN114764180B (en) Focusing method and focusing system for object to be measured, device and storage medium
EP4386675A1 (en) External parameter determination method and image processing device
CN116958152B (en) Part size measurement method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant