CN110418070B - Method for adjusting camera image exposure in digital slice scanner - Google Patents

Method for adjusting camera image exposure in digital slice scanner Download PDF

Info

Publication number
CN110418070B
CN110418070B CN201910720059.0A CN201910720059A CN110418070B CN 110418070 B CN110418070 B CN 110418070B CN 201910720059 A CN201910720059 A CN 201910720059A CN 110418070 B CN110418070 B CN 110418070B
Authority
CN
China
Prior art keywords
shutter
image
camera
value
scanner
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.)
Active
Application number
CN201910720059.0A
Other languages
Chinese (zh)
Other versions
CN110418070A (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.)
Shandong Zhiying Medical Technology Co ltd
Original Assignee
Shandong Zhiying Medical 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 Shandong Zhiying Medical Technology Co ltd filed Critical Shandong Zhiying Medical Technology Co ltd
Priority to CN201910720059.0A priority Critical patent/CN110418070B/en
Publication of CN110418070A publication Critical patent/CN110418070A/en
Application granted granted Critical
Publication of CN110418070B publication Critical patent/CN110418070B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing 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
    • 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
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Image Input (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a camera image exposure adjusting method in a digital slice scanner, which comprises the steps of firstly, carrying out digital slice scanning on a physical slice to obtain a navigation preview of the slice; recognizing boundary positions of the scanned sample and the cover glass, and acquiring a non-scanned sample position of the cover glass; secondly, acquiring an initial parameter value S of the camera shutterI(ii) a An image of a non-scanned sample location of a pair of coverslips is then acquired and the mean color value C of the image is calculatedI(ii) a From the initial parameter value SIAccording to a minimum variation deltaSPThe shutter parameter is adjusted down, and the minimum variation delta S of the shutter parameter is calculatedPChanging the amount of change in the color value; finally, the initial parameter value SIAccording to a minimum variation deltaSPThe shutter parameter is adjusted to be high, and the shutter parameter value of which the exposure amount is at the limit is determined. The invention solves the problem of influence of different light sources and different slice glass refraction on the exposure of the picture, and ensures that a digital slice scanner can obtain a stable and high-quality picture.

Description

Method for adjusting camera image exposure in digital slice scanner
Technical Field
The invention relates to a method for adjusting camera image exposure in a digital slice scanner, belonging to the technical field of image processing.
Background
Digital slice scanners are a technology that organically combines computer technology with conventional optical magnification devices. The digital slice scanner scans the traditional slices in full information and all-round fast, so that the traditional materialized slices are changed into digital slices. The basic principle is that a high-resolution digital image is obtained through scanning and acquisition of a full-automatic microscope or an optical amplification system, and then the obtained image is automatically spliced and processed in a high-precision multi-view seamless mode by a computer. The method is based on digitalization by scanning, acquiring and imaging the glass slices one by using a microscope and a magnifying system. The digital slice scanner is generally used to capture images by assembling a high-resolution industrial CCD camera on a microscope or an optical magnifying system.
When the digital slice scanner utilizes an industrial CCD camera to take a picture, the setting of camera parameters plays an important role in the quality of the picture. The industrial camera has more settable parameters, such as: r, G, B white balance settings for the three channels; setting a frame rate; exposure (Exposure) and Shutter (Shutter) settings, etc.
The picture quality of the digital slice scanner is determined by the picture quality of the industrial camera CCD acquisition. In practical use, the exposure of a picture acquired by a camera determines the brightness of the picture, and when the exposure is insufficient, the picture is too dark, so that the definition of the picture is influenced; and when the exposure is too large, the picture is too bright and the slice-related details are lost. When two parameters of exposure and a shutter of the industrial camera are set to be in an automatic mode, the acquired picture is dark, and the actual use requirement cannot be met. When the parameters are set by using fixed values, each device needs to be set due to certain difference of light sources of each device; in addition, in the digital slice scanner, light is refracted by the glass of the slice, and the brightness of the refracted light is sometimes increased or decreased, which also affects the exposure amount of the picture. Therefore, in the digital slice scanner, the exposure of the picture cannot be ensured in a parameter automatic mode and a parameter fixed value mode, and the quality of the picture is seriously influenced.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a method for adjusting the exposure of a camera image in a digital slice scanner, which can ensure the exposure of the picture in the digital slice scanner and the consistency of the picture quality.
The technical scheme adopted for solving the technical problems is as follows:
the embodiment of the invention provides a method for adjusting camera image exposure in a digital slice scanner, which comprises the following steps:
step 1, carrying out digital slice scanning on a physical slice to obtain a navigation preview of the slice;
step 2, recognizing boundary positions of the scanned sample and the cover glass, and acquiring a non-scanned sample position of the cover glass;
step 3, obtaining initial parameter value S of camera shutterI
Step 4, collecting an image of a non-scanning sample position of a pair of cover glass and calculating an average color value C of the imageI
Step 5, from the initial parameter value SIAccording to a minimum variation deltaSPThe shutter parameter is adjusted down, and the minimum variation delta S of the shutter parameter is calculatedPChanging the amount of change in the color value;
step 6, from the initial parameter value SIAccording to a minimum variation deltaSPThe shutter parameter is adjusted to be high, and the shutter parameter value of which the exposure amount is at the limit is determined.
In combination as a possible implementation manner of this embodiment, the step 1 includes the following steps:
putting the physical slices into a digital slice scanner, and taking pictures of the physical slices by using a preview camera of the scanner to obtain an overall overview picture of the slices;
carrying out gray level processing on the whole general picture of the slice, and obtaining a binarization threshold value of the whole general picture by utilizing a large law method;
carrying out binarization processing on the overall profile graph according to a threshold value to obtain a binary profile of the slice overall profile;
and resetting the size of the binary image of the whole section profile, and calculating according to the stepping of a scanner corresponding to one pixel point to obtain a navigation preview image of the section.
In combination as a possible implementation manner of this embodiment, the step 2 includes the following steps:
identifying the scanned sample and the coverslip boundary position by using the difference of the sample and the coverslip boundary;
and controlling the scanner to move the scanner to the non-scanning sample position of the cover glass according to the identified cover glass boundary and the sample area and the corresponding relation between the navigation preview and the position of the scanner.
In combination as a possible implementation manner of this embodiment, the step 3 includes the following steps:
calling a camera interface function, and setting the exposure and shutter modes of the camera to be automatic modes;
after the shutter parameters are stable, calling the interface function of the camera again, and setting the exposure and shutter modes of the camera to be non-automatic modes;
recording the automatically adjusted shutter parameter value as the initial shutter parameter value SI
In combination as a possible implementation manner of this embodiment, the step 4 includes the following steps:
calling a picture acquisition interface function of a camera, and acquiring an original image of a non-scanning sample position of a pair of cover slips;
converting the original image into an OpenCV (open channel computer aided design) Mat format, and calling a mean function of the OpenCV to respectively calculate B, G, R color mean values of three channels;
adding and averaging the color mean values of B, G, R three channels to obtain the average color value C of the imageI
In combination as a possible implementation manner of this embodiment, the step 5 includes the following steps:
taking camera shutter parameters from initial parameter values SIAccording to a minimum variation deltaSPAdjusting down, collecting an image of a non-scanning sample position of a pair of cover glass, and calculating an average color value C of the imageM
Again according to the minimum variation deltasPAdjusting down shutter parameters, collecting an image of a non-scanning sample position of a pair of cover glass again, and calculating the average color value C of the imageN
Calculating the minimum variation Delta S of the shutter parametersPChange-induced color value change Δ CI=CM-CN
In combination as a possible implementation manner of this embodiment, the step 6 includes the following steps:
step 61, initializing camera shutter parameters to initial parameter values SI
Step 62, according to the minimum variation deltas of the camera shutter parameterPThe shutter parameters are increased, an image of a non-scanning sample position of a pair of cover glass is collected, and the average color value C of the image is calculated;
step 63, calculating the color value increment delta C of the image as C-CI
Step 64, compare Δ CIThe difference between- Δ C if | Δ CIIf Δ C is greater than a given threshold D, continue by the variation Δ SPHeightening shutter parameters;
step 65, repeating steps 62 to 64, calculating the difference between the image color of the new shutter parameter and the image color of the previous parameter until the difference is less than the threshold value D;
the shutter parameter whose last difference is larger than a given threshold value D is taken as the shutter parameter value at which the exposure amount is already at the limit.
In combination with a possible implementation manner of this embodiment, the calculation process of the threshold D is as follows:
setting shutter parameter values to initial parameter values SIOverexposure is performed on the picture by 10 times, and the average value of the colors of the acquired images is equal to 255;
minimum variation Δ S according to shutter parametersPReducing to obtain a first image with the average value of the image color smaller than 255;
the minimum variation deltaS of a shutter parameter is reduced againPObtaining a second sub-image with the average value of the image color smaller than 255;
the absolute difference of the color averages of the first image and the second sub-image is obtained as a threshold value D.
The technical scheme of the embodiment of the invention has the following beneficial effects:
the technical scheme of the embodiment of the invention provides a method for adjusting the exposure of camera images in a digital slice scanner, which comprises the following steps: step 1, carrying out digital slice scanning on a physical slice to obtain a navigation preview of the slice; step 2, recognizing boundary positions of the scanned sample and the cover glass, and acquiring a non-scanned sample position of the cover glass; step 3, obtaining initial parameter value S of camera shutterI(ii) a Step 4, collecting an image of a non-scanning sample position of a pair of cover glass and calculating an average color value C of the imageI(ii) a Step 5, from the initial parameter value SIAccording to a minimum variation deltaSPThe shutter parameter is adjusted down, and the minimum variation delta S of the shutter parameter is calculatedPChanging the amount of change in the color value; step 6, from the initial parameter value SIAccording to a minimum variation deltaSPThe shutter parameter is adjusted to be high, and the shutter parameter value of which the exposure amount is at the limit is determined. Setting the exposure parameter of the camera after determining the shutter parameter value adjusted by the shutter parameter valueThe digital slice scanner is set to be in a non-automatic mode, then the picture is taken, the exposure of the picture is ensured in the digital slice scanner, the consistency of the picture quality is ensured, the problem of influence of refraction of different light sources and different slice glasses on the exposure of the picture is solved, and the digital slice scanner can obtain the picture with stable high quality.
Description of the drawings:
FIG. 1 is a flow chart illustrating a method of adjusting camera image exposure in a digital slice scanner in accordance with an exemplary embodiment;
FIG. 2 is a navigation preview of a slice shown in accordance with an exemplary embodiment.
Detailed Description
The invention is further illustrated by the following examples in conjunction with the accompanying drawings:
in order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
FIG. 1 is a flow chart illustrating a method of adjusting camera image exposure in a digital slice scanner according to an exemplary embodiment. As shown in fig. 1, a method for adjusting exposure of a camera image in a digital slice scanner according to an embodiment of the present invention includes the following steps:
step 1, carrying out digital slice scanning on a physical slice to obtain a navigation preview of the slice;
step 2, recognizing boundary positions of the scanned sample and the cover glass, and acquiring a non-scanned sample position of the cover glass;
step 3, obtaining initial parameter value S of camera shutterI
Step 4, collecting an image of a non-scanning sample position of a pair of cover glass and calculating an average color value C of the imageI
Step 5, from the initial parameter value SIAccording to a minimum variation deltaSPThe shutter parameter is adjusted down, and the minimum variation delta S of the shutter parameter is calculatedPChanging the amount of change in the color value;
step 6, from the initial parameter value SIAccording to a minimum variation deltaSPThe shutter parameter is adjusted to be high, and the shutter parameter value of which the exposure amount is at the limit is determined.
In combination as a possible implementation manner of this embodiment, the step 1 includes the following steps:
putting the physical slices into a digital slice scanner, and taking pictures of the physical slices by using a preview camera of the scanner to obtain an overall overview picture of the slices;
carrying out gray level processing on the whole general picture of the slice, and obtaining a binarization threshold value of the whole general picture by utilizing a large law method;
carrying out binarization processing on the overall profile graph according to a threshold value to obtain a binary profile of the slice overall profile;
and resetting the size of the binary image of the whole section profile, and calculating according to the stepping of a scanner corresponding to one pixel point to obtain a navigation preview image of the section.
In combination as a possible implementation manner of this embodiment, the step 2 includes the following steps:
identifying the scanned sample and the coverslip boundary position by using the difference of the sample and the coverslip boundary;
and controlling the scanner to move the scanner to the non-scanning sample position of the cover glass according to the identified cover glass boundary and the sample area and the corresponding relation between the navigation preview and the position of the scanner.
In combination as a possible implementation manner of this embodiment, the step 3 includes the following steps:
calling a camera interface function, and setting the exposure and shutter modes of the camera to be automatic modes;
after the shutter parameters are stable, calling the interface function of the camera again, and setting the exposure and shutter modes of the camera to be non-automatic modes;
recording the automatically adjusted shutter parameter value as the initial shutter parameter value SI
In combination as a possible implementation manner of this embodiment, the step 4 includes the following steps:
calling a picture acquisition interface function of a camera, and acquiring an original image of a non-scanning sample position of a pair of cover slips;
converting the original image into an OpenCV (open channel computer aided design) Mat format, and calling a mean function of the OpenCV to respectively calculate B, G, R color mean values of three channels;
adding and averaging the color mean values of B, G, R three channels to obtain the average color value C of the imageI
In combination as a possible implementation manner of this embodiment, the step 5 includes the following steps:
taking camera shutter parameters from initial parameter values SIAccording to a minimum variation deltaSPAdjusting down, collecting an image of a non-scanning sample position of a pair of cover glass, and calculating an average color value C of the imageM
Again according to the minimum variation deltasPAdjusting down shutter parameters, collecting an image of a non-scanning sample position of a pair of cover glass again, and calculating the average color value C of the imageN
Calculating the minimum variation Delta S of the shutter parametersPChange-induced color value change Δ CI=CM-CN
In combination as a possible implementation manner of this embodiment, the step 6 includes the following steps:
step 61, initializing camera shutter parameters to initial parameter values SI;
Step 62, according to the minimum variation deltas of the camera shutter parameterPSetting shutter parameters high, collecting a picture of the non-scanned sample position of a pair of cover slipsCalculating an average color value C of the image;
step 63, calculating the color value increment delta C of the image as C-CI
Step 64, compare Δ CIThe difference between- Δ C if | Δ CIIf Δ C is greater than a given threshold D, continue by the variation Δ SPHeightening shutter parameters;
step 65, repeating steps 62 to 64, calculating the difference between the image color of the new shutter parameter and the image color of the previous parameter until the difference is less than the threshold value D;
the shutter parameter whose last difference is larger than a given threshold value D is taken as the shutter parameter value at which the exposure amount is already at the limit.
In combination with a possible implementation manner of this embodiment, the calculation process of the threshold D is as follows:
setting shutter parameter values to initial parameter values SIOverexposure is performed on the picture by 10 times, and the average value of the colors of the acquired images is equal to 255;
minimum variation Δ S according to shutter parametersPReducing to obtain a first image with the average value of the image color smaller than 255;
the minimum variation deltaS of a shutter parameter is reduced againPObtaining a second sub-image with the average value of the image color smaller than 255;
the absolute difference of the color averages of the first image and the second sub-image is obtained as a threshold value D.
The tuning method of the present invention is verified below with reference to specific test data.
1. And (4) putting the physical slice into a digital slice scanner, and obtaining the overall overview of the slice through a preview camera to obtain a navigation preview image of the slice.
2. Identifying the navigation preview image; the scanned specimen and coverslip position are obtained. As shown in fig. 2. In fig. 2, 1 is a sample region; 2 is a cover glass area; 3 is the boundary of the cover glass; and 4 is a slide glass area.
3. The scanner is moved to the area on the cover slip where there is no sample. I.e. 2 in fig. 2 and not on 1.
4. Setting the Exposure (Exposure) and Shutter (Shutter) parameters of the camera to automatic mode, waiting for 200 ms, reading and recording the initial Shutter parameter value as SI=0.235ms。
5. Setting the mode of the camera shutter parameters to be non-automatic, collecting a pair of images by a calculation and collection device, and calculating the average color value C of the imagesI=206。
6. Camera shutter parameters according to a minimum variation deltasPThe adjustment is performed for 0.005ms, and the adjusted shutter parameter is 0.230 ms. The calculation and acquisition device acquires a pair of images and calculates the average color value C of the imagesM198. Setting the shutter parameter Δ S low againPAnd adjusting the shutter parameter to be 0.225ms, calculating the average color value C of the image by collecting an image by the collecting deviceN189. Calculating the minimum variation Delta S of the shutter parametersPChange-induced color value change Δ CI=CM-CN198 and 189 are 9. Setting shutter parameters to SI=0.235ms。
7. According to the minimum shutter variation amount deltaSPAnd (5) the shutter parameter of the camera is heightened, and the adjusted shutter parameter is 0.240 ms. The calculation and acquisition device acquires an image, and the average color value C of the image is calculated to be 215. Calculating the color value increment of the image as C-CICompare Δ C as 9IThe difference from Δ C is greater than a given smaller value D7, so that Δ S is continuedPAnd (5) adjusting the shutter parameter to be high, wherein the adjusted shutter parameter is 0.245 ms. The calculating and collecting device collects a pair of images, the average color value C of the images is calculated to be 223, the color difference Delta C between the current time and the last time is calculated to be 8, and the Delta C is comparedIThe difference from Δ C is greater than a given smaller value D, and therefore continues according to Δ SPAnd (5) adjusting the shutter parameter to be high, wherein the shutter parameter after adjustment is 0.250 ms. And continuously acquiring the images, comparing the images, and adjusting the shutter value of the camera, wherein when the shutter value is 0.265ms, the image color value C is 248, and the color difference meets the requirement. Adjusting the shutter parameter again for 0.270ms, calculating the average color value C of the image to be 251, and the difference delta C between the average color value C of the image and the color value of the previous parameter to be 3, which is smallAt a given minimum value D. And adjusting the camera shutter parameter to 0.265ms to finish the adjustment of the camera shutter parameter.
If the difference is less than a given smaller value D, the exposure is in the limit, and then the shutter parameter of the camera is increased to cause the overexposure of the picture, and the minimum variation deltaS of the shutter parameter is reduced after the situation occursP
8. And after the adjustment of the camera shutter parameters is finished, setting the exposure parameters of the camera into a non-automatic mode, and finishing the adjustment work of the exposure amount of the camera.
Comparison of Δ CIThe difference between Δ C and Δ C is related to the following: after the scanner is moved to the non-sample area, the camera produces an image that is substantially a solid color image. When the shutter parameters of the camera are adjusted, the light entering amount of each frame of picture of the camera changes, and meanwhile, the light source adopted by the scanner is a pure white light source with the color temperature of 65K, so that the color values of B, G, R three channels of the picture are increased or decreased simultaneously when the shutter is adjusted. When the shutter is too high, the amount of light entering the camera increases, the picture color tends to white, and the color average value is closer to 255. When the exposure is larger than a certain degree, the minimum variation Delta S is adjustedP. The average color value increases less.
In the camera mentioned in this embodiment, the parameters affecting the exposure amount are exposure and shutter, and in the two parameters, the shutter has a large influence on the exposure amount, so we adopt a method of adjusting the shutter parameters to increase the exposure amount. Some camera exposure parameters have large influence on the exposure amount, and the exposure parameters need to be adjusted during adjustment; some cameras only have one parameter of exposure or shutter, and only one parameter needs to be adjusted at the moment.
The invention is not affected by different light sources and different slice glasses on the exposure of the picture, ensures that the picture with stable and consistent exposure can be obtained by an industrial CCD camera, and ensures that a digital slice scanner can obtain the picture with stable and high quality.
The foregoing is only a preferred embodiment of the present invention, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements are also considered to be within the scope of the present invention.

Claims (4)

1. A method for adjusting camera image exposure in a digital slice scanner is characterized by comprising the following steps:
step 1, carrying out digital slice scanning on a physical slice to obtain a navigation preview of the slice;
step 2, recognizing boundary positions of the scanned sample and the cover glass, and acquiring a non-scanned sample position of the cover glass;
step 3, obtaining initial parameter value S of camera shutterI
Step 4, collecting an image of a non-scanning sample position of a pair of cover glass and calculating an average color value C of the imageI
Step 5, from the initial parameter value SIAccording to a minimum variation deltaSPThe shutter parameter is adjusted down, and the minimum variation delta S of the shutter parameter is calculatedPChanging the amount of change in the color value;
step 6, from the initial parameter value SIAccording to a minimum variation deltaSPCarrying out shutter parameter heightening, and determining a shutter parameter value of which the exposure is at the limit;
step 7, adjusting camera shutter parameters according to the obtained shutter parameters, setting the exposure parameters of the camera into a non-automatic mode until the adjustment work of the exposure amount of the camera is finished;
the initial parameter value S of the camera shutter is obtainedIThe method comprises the following steps:
controlling the scanner to move the scanner to a non-scanning sample position of the cover glass according to the identified cover glass boundary and the sample area and the corresponding relation between the navigation preview and the position of the scanner;
calling a camera interface function, and setting the exposure and shutter modes of the camera to be automatic modes;
after the shutter parameters are stable, calling the interface function of the camera again, and setting the exposure and shutter modes of the camera to be non-automatic modes;
will be automatically adjustedThe door parameter value is recorded as the initial parameter value of the shutter as SI
The step 5 comprises the following steps:
taking camera shutter parameters from initial parameter values SIAccording to a minimum variation deltaSPAdjusting down, collecting an image of a non-scanning sample position of a pair of cover glass, and calculating an average color value C of the imageM
Again according to the minimum variation deltasPAdjusting down shutter parameters, collecting an image of a non-scanning sample position of a pair of cover glass again, and calculating the average color value C of the imageN
Calculating the minimum variation Delta S of the shutter parametersPChange-induced color value change Δ CI=CM-CN
The step 6 comprises the following steps:
step 61, initializing camera shutter parameters to initial parameter values SI;
Step 62, according to the minimum variation deltas of the camera shutter parameterPThe shutter parameters are increased, an image of a non-scanning sample position of a pair of cover glass is collected, and the average color value C of the image is calculated;
step 63, calculating the color value increment delta C of the image as C-CI
Step 64, compare Δ CIThe difference between- Δ C if | Δ CIIf Δ C is greater than a given threshold D, continue by the variation Δ SPHeightening shutter parameters;
step 65, repeating steps 62 to 64, calculating the difference between the image color of the new shutter parameter and the image color of the previous parameter until the difference is less than the threshold value D;
taking the shutter parameter of which the last difference is larger than a given threshold value D as the shutter parameter value of which the exposure amount is at the limit;
the calculation process of the threshold value D is as follows:
setting shutter parameter values to initial parameter values SIOverexposure is performed on the picture by 10 times, and the average value of the colors of the acquired images is equal to 255;
according to the parameters of shutterMinimum change of number Δ SPReducing to obtain a first image with the average value of the image color smaller than 255;
the minimum variation deltaS of a shutter parameter is reduced againPObtaining a second sub-image with the average value of the image color smaller than 255;
the absolute difference of the color averages of the first image and the second sub-image is obtained as a threshold value D.
2. The method for adjusting camera image exposure in a digital slice scanner as set forth in claim 1, wherein the step 1 comprises the steps of:
putting the physical slices into a digital slice scanner, and taking pictures of the physical slices by using a preview camera of the scanner to obtain an overall overview picture of the slices;
carrying out gray level processing on the whole general picture of the slice, and obtaining a binarization threshold value of the whole general picture by utilizing a large law method;
carrying out binarization processing on the overall profile graph according to a threshold value to obtain a binary profile of the slice overall profile;
and resetting the size of the binary image of the whole section profile, and calculating according to the stepping of a scanner corresponding to one pixel point to obtain a navigation preview image of the section.
3. The method for adjusting camera image exposure in a digital slice scanner as set forth in claim 2, wherein said step 2 comprises the steps of:
identifying the scanned sample and the coverslip boundary position by using the difference of the sample and the coverslip boundary;
and controlling the scanner to move the scanner to the non-scanning sample position of the cover glass according to the identified cover glass boundary and the sample area and the corresponding relation between the navigation preview and the position of the scanner.
4. The method of claim 1, wherein the step 4 comprises the steps of:
calling a picture acquisition interface function of a camera, and acquiring an original image of a non-scanning sample position of a pair of cover slips;
converting the original image into an OpenCV (open channel computer aided design) Mat format, and calling a mean function of the OpenCV to respectively calculate B, G, R color mean values of three channels;
adding and averaging the color mean values of B, G, R three channels to obtain the average color value C of the imageI
CN201910720059.0A 2019-08-05 2019-08-05 Method for adjusting camera image exposure in digital slice scanner Active CN110418070B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910720059.0A CN110418070B (en) 2019-08-05 2019-08-05 Method for adjusting camera image exposure in digital slice scanner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910720059.0A CN110418070B (en) 2019-08-05 2019-08-05 Method for adjusting camera image exposure in digital slice scanner

Publications (2)

Publication Number Publication Date
CN110418070A CN110418070A (en) 2019-11-05
CN110418070B true CN110418070B (en) 2020-11-27

Family

ID=68366033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910720059.0A Active CN110418070B (en) 2019-08-05 2019-08-05 Method for adjusting camera image exposure in digital slice scanner

Country Status (1)

Country Link
CN (1) CN110418070B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112697789B (en) * 2020-12-09 2023-01-13 山东志盈医学科技有限公司 Image focusing method and device for digital slice scanner
CN112580663A (en) * 2020-12-09 2021-03-30 山东志盈医学科技有限公司 Method and apparatus for coverslip boundary removal in digital slide scanner
CN112468795B (en) * 2020-12-09 2022-03-18 山东志盈医学科技有限公司 Method and device for adjusting white balance of camera

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5732119A (en) * 1995-05-12 1998-03-24 Instrumentarium Corporation Method for the automatic adjustment of exposure parameters in an imaging apparatus operating on linear tomographic principles
CN102368283A (en) * 2011-02-21 2012-03-07 麦克奥迪实业集团有限公司 Digital slice-based digital remote pathological diagnosis system and method
CN102427502A (en) * 2011-10-01 2012-04-25 麦克奥迪实业集团有限公司 Scanning method and device for microscopic section

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007128807A (en) * 2005-11-07 2007-05-24 Jeol Ltd Method of setting exposure time and irradiation condition of electron microscope
DE102006007057B4 (en) * 2006-02-15 2008-03-27 Siemens Ag Method for recording magnetic resonance slice images of a patient's examination object by means of a magnetic resonance device
EP2642272B1 (en) * 2007-03-02 2018-02-07 Becton, Dickinson and Company Method and apparatus for automated staining of biological materials
JP2011180442A (en) * 2010-03-02 2011-09-15 Sony Corp Device, method and program for acquisition of sample image
CN102438107B (en) * 2011-08-09 2013-11-13 宁波大学 Method for processing microscope video image
CN102854615B (en) * 2012-04-27 2015-07-22 麦克奥迪实业集团有限公司 Full-automatic scanning system and method for microscopic section
CN109089054B (en) * 2018-08-10 2020-12-15 上海安翰医疗技术有限公司 Automatic exposure control method, storage medium, and endoscope

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5732119A (en) * 1995-05-12 1998-03-24 Instrumentarium Corporation Method for the automatic adjustment of exposure parameters in an imaging apparatus operating on linear tomographic principles
CN102368283A (en) * 2011-02-21 2012-03-07 麦克奥迪实业集团有限公司 Digital slice-based digital remote pathological diagnosis system and method
CN102427502A (en) * 2011-10-01 2012-04-25 麦克奥迪实业集团有限公司 Scanning method and device for microscopic section

Also Published As

Publication number Publication date
CN110418070A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN110418070B (en) Method for adjusting camera image exposure in digital slice scanner
JP6935587B2 (en) Methods and equipment for image processing
US7590305B2 (en) Digital camera with built-in lens calibration table
US8369650B2 (en) Image defect map creation using batches of digital images
WO2019085603A1 (en) Method for image-processing and mobile terminal using dual cameras
US7340109B2 (en) Automated statistical self-calibrating detection and removal of blemishes in digital images dependent upon changes in extracted parameter values
US7206461B2 (en) Digital image acquisition and processing system
US7310450B2 (en) Method of detecting and correcting dust in digital images based on aura and shadow region analysis
US7315658B2 (en) Digital camera
KR20200041382A (en) Dual camera-based imaging method, mobile terminal and storage medium
US20080144965A1 (en) Automated statistical self-calibrating detection and removal of blemishes in digital images based on multiple occurrences of dust in images
KR102304784B1 (en) Double camera-based imaging method and apparatus
US20050068449A1 (en) Automated statistical self-calibrating detection and removal of blemishes in digital images based on a dust map developed from actual image data
CN102984448A (en) Method of controlling an action, such as a sharpness modification, using a colour digital image
US8077208B2 (en) Method, apparatus, software and arrangement for modifying image data
WO2019105260A1 (en) Depth of field obtaining method, apparatus and device
CN107682611B (en) Focusing method and device, computer readable storage medium and electronic equipment
JP2019101359A (en) Observation device and focus detection method
KR20010037684A (en) Apparatus for correlating of exposure automatically of a digital still camera and method for performing the same
JP2019074693A (en) Observation device and focus adjustment method
CN101625452B (en) Automatic focusing method, automatic focusing device and digital camera device
Nagalakshmi et al. Image acquisition, noise removal, edge detection methods in image processing using Matlab for prawn species identification
CN110995961A (en) Method and system for enhancing camera vignetting
IES84112Y1 (en) Digital camera with built-in lens calibration table

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