An aquatic product sample section image processing method and device, electronic equipment and medium
By sandwiching a target made of flexible material between a glass slide and a coverslip, and analyzing its pattern changes to calculate the slide distortion coefficient, the problem of physical distortion during slide preparation was solved, and the accurate restoration of aquatic sample slice images was achieved.
Patent Information
- Application Number
- CN202511854080.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-10
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2045-12-10
AI Technical Summary
Existing technologies lack effective methods to correct the complex and non-uniform physical distortions introduced during slide preparation, which prevent aquatic sample slide images from accurately reflecting the original tissue morphology, affecting the accuracy and quantification of subsequent analyses.
The design employs a method of encasing aquatic sample tissue and multiple targets within glass slides and coverslips. The targets, made of flexible material, have a pre-set pattern on their surface. By analyzing the positional relationship and pattern changes of the target images, the slide distortion coefficient is calculated, and distortion removal is performed to restore the original slide image.
Effective quantification and correction of physical distortions during slide preparation restores images that more realistically reflect the original appearance of aquatic sample tissues, laying a solid foundation for subsequent analysis.
Smart Images

Figure CN121280294B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of slice image processing, and in particular to a water product sample slice image processing method and device, electronic equipment and medium. BACKGROUND
[0002] In the fields of aquaculture, genetic breeding, pathological research and food safety detection, histological analysis of fish, shrimp, shellfish and other water product samples is a crucial link. This analysis usually requires the preparation of biological tissues into extremely thin slices and the acquisition of digital images under a microscope to observe the cell structure, tissue morphology, pathological changes (such as parasitic infection, inflammation, necrosis) or physiological state.
[0003] However, the preparation process of the slice sample is the main source of introducing image distortion. The traditional paraffin section or frozen section process includes multiple steps such as fixation, dehydration, embedding, sectioning and staining. In this process, the tissue is affected by various physical and chemical effects, which causes it to be unable to maintain the original, in vivo true morphology. This morphological change caused by the preparation process is called "preparation distortion".
[0004] Currently, in the field of digital pathology, the correction methods for image distortion are mostly focused on the distortion produced by the microscope optical system itself (such as lens pincushion or barrel distortion), which usually has regularity and can be calibrated and corrected by a standard grid plate. However, for the complex and non-uniform physical distortion produced in the preparation process, the existing technology lacks effective solutions. Most researchers choose to ignore this problem or analyze it without guaranteeing accuracy, which poses a hidden danger to the reliability of the research conclusion; a few try to estimate it through artificial experience, which undoubtedly introduces subjectivity and is inefficient.
[0005] Therefore, there is an urgent need in the art for a water product sample slice image processing method that can effectively quantify and correct the physical distortion introduced by the preparation process, so as to realize the de-distortion operation on the acquired original slice image and restore an image that can more truly reflect the original appearance of the tissue, thereby laying a solid foundation for subsequent accurate qualitative and quantitative analysis. SUMMARY
[0006] The present application provides a water product sample slice image processing method, device, electronic equipment and medium for de-distortion operation on the acquired original slice image, thereby restoring an image that can more truly reflect the original appearance of the tissue.
[0007] The first aspect of this invention discloses a method for image processing of aquatic sample slices, wherein the aquatic sample slice includes a glass slide and a coverslip, wherein aquatic sample tissue and a plurality of target plates located around the aquatic sample tissue are sandwiched between the glass slide and the coverslip, and the target plates are thin slices made of flexible material with a preset pattern on their surface; the method includes:
[0008] Obtain slice images of the aquatic sample slices, the slice images including aquatic sample tissue images and multiple target images;
[0009] Based on the positional relationship between multiple target images and the pattern image of a preset pattern on each target image, the slide distortion coefficient corresponding to the slice image is determined, wherein the slide distortion represents the distortion generated during the preparation of aquatic sample slices;
[0010] The slice image is subjected to distortion correction based on the distortion coefficient to obtain a distortion-corrected slice image.
[0011] As an optional implementation, in the first aspect of the present invention, a target consisting of two mutually perpendicular strip-shaped thin films is sandwiched between the glass slide and the cover glass, and the surface of the target is provided with a periodically repeating pattern.
[0012] And, determining the film distortion coefficient corresponding to the slice image based on the positional relationship between multiple target images and the pattern image of a preset pattern on each target image includes:
[0013] The lateral film distortion coefficient is determined based on the relationship between the left and right pattern images on one of the two target images.
[0014] The longitudinal film distortion coefficient is determined based on the relationship between the left and right pattern images of the other target image.
[0015] Wherein, the horizontal direction and the vertical direction are mutually perpendicular directions located in the plane of the glass slide.
[0016] As an optional implementation, in the first aspect of the present invention, the periodically repeating pattern on the target surface is a periodically repeating stripe perpendicular to the stripe-shaped target, and the original width of the stripe is a.
[0017] And, determining the lateral distortion coefficient based on the relationship between the left and right pattern images on one of the two target images includes:
[0018] For one of the two target images, obtain the width information of each stripe in the pattern image on the target image, and calculate the width difference between the width of each stripe and the original width a; number all the stripes in order from left to right, and establish a number-width difference coordinate system, and fit the width difference corresponding to all numbered stripes to a first number-width difference curve, wherein the number-width difference curve is used to measure the change of the stripes as the number changes; determine the first fitting function corresponding to the first number-width difference curve, and determine the first fitting function as the lateral film distortion coefficient.
[0019] As an optional implementation, in a first aspect of the invention, determining the longitudinal film distortion coefficient based on the relationship between the left and right pattern images of another of the two target images includes:
[0020] For the other of the two target images, obtain the width information of each stripe in the pattern image on the target image, and calculate the width difference between the width of each stripe and the original width a; number all the stripes in order from left to right, and establish a number-width difference coordinate system, and fit the width difference corresponding to all numbered stripes to a second number-width difference curve; determine the second fitting function corresponding to the second number-width difference curve, and determine the second fitting function as the longitudinal film distortion coefficient.
[0021] As an optional implementation, in the first aspect of the present invention, determining the film distortion coefficient corresponding to the slice image based on the positional relationship between multiple target images and a pattern image of a preset pattern on each target image further includes:
[0022] The rotation distortion coefficient is determined based on the relationship between the pattern images on the two target images; wherein the rotation is the rotation of the cover glass relative to the slide.
[0023] As an optional implementation, in the first aspect of the invention, the periodically repeating pattern on the target surface is a periodically repeating stripe perpendicular to the strip-shaped target, and the periodically repeating stripes on the two target surfaces are identical; determining the rotation distortion coefficient based on the relationship between the pattern images on the two target images includes:
[0024] The rotation distortion coefficient is determined based on the angular relationship between the stripes on the two target images.
[0025] As an optional implementation, in the first aspect of the invention, determining the rotation distortion coefficient based on the angular relationship between the stripes on the two target images includes:
[0026] Each stripe on each of the target images is numbered in a clockwise direction;
[0027] Each stripe on one of the target images is matched with each stripe on another target image in descending order of numbering, in ascending order of numbering, to obtain multiple pairs of cross-numbered stripes;
[0028] For each pair of intersecting numbered stripes, calculate the angle between the intersecting numbers of the pair of intersecting numbered stripes in the pattern image;
[0029] Each stripe on one of the target images is matched with a stripe with the same number on another target image to obtain multiple pairs of stripes with the same number;
[0030] For each pair of stripes with the same number, calculate the angle between the same number stripes in the pattern image, and calculate the angle difference between the angle between the same number stripes and the average of all the cross-numbered angles.
[0031] The average value of all the angle differences is calculated as the rotational film distortion coefficient.
[0032] A second aspect of this invention discloses an image processing device for aquatic sample slides. The aquatic sample slide includes a glass slide and a coverslip, wherein an aquatic sample tissue and multiple target plates surrounding the aquatic sample tissue are sandwiched between the glass slide and the coverslip. The target plates are thin slices made of a flexible material with a preset pattern on their surface. The device includes:
[0033] The image acquisition module is used to acquire slice images of the aquatic sample slices, the slice images including aquatic sample tissue images and multiple target images;
[0034] The distortion analysis module is used to determine the slide distortion coefficient corresponding to the slice image based on the positional relationship between multiple target images and the pattern image of a preset pattern on each target image, wherein the slide distortion represents the distortion generated during the preparation of aquatic sample slices;
[0035] The distortion correction module is used to perform distortion correction on the slice image according to the film distortion coefficient to obtain a distortion-corrected slice image.
[0036] As an optional implementation, in a second aspect of the invention, a target consisting of two mutually perpendicular strip-shaped thin films is sandwiched between the glass slide and the cover glass, and the surface of the target is provided with a periodically repeating pattern.
[0037] Furthermore, the distortion analysis module determines the specific operation method of the slide distortion coefficient corresponding to the slice image based on the positional relationship between multiple target images and the pattern image of a preset pattern on each target image, including:
[0038] The lateral film distortion coefficient is determined based on the relationship between the left and right pattern images on one of the two target images.
[0039] The longitudinal film distortion coefficient is determined based on the relationship between the left and right pattern images of the other target image.
[0040] Wherein, the horizontal direction and the vertical direction are mutually perpendicular directions located in the plane of the glass slide.
[0041] As an optional implementation, in a second aspect of the invention, the periodically repeating pattern on the target surface is a periodically repeating stripe perpendicular to the stripe-shaped target, and the original width of the stripe is a.
[0042] Furthermore, the distortion analysis module determines the lateral film distortion coefficient based on the relationship between the left and right pattern images on one of the two target images, including:
[0043] For one of the two target images, obtain the width information of each stripe in the pattern image on the target image, and calculate the width difference between the width of each stripe and the original width a; number all the stripes in order from left to right, and establish a number-width difference coordinate system, and fit the width difference corresponding to all numbered stripes to a first number-width difference curve, wherein the number-width difference curve is used to measure the change of the stripes as the number changes; determine the first fitting function corresponding to the first number-width difference curve, and determine the first fitting function as the lateral film distortion coefficient.
[0044] As an optional implementation, in a second aspect of the invention, the distortion analysis module determines the longitudinal film distortion coefficient based on the relationship between the left and right pattern images of the other of the two target images, including:
[0045] For the other of the two target images, obtain the width information of each stripe in the pattern image on the target image, and calculate the width difference between the width of each stripe and the original width a; number all the stripes in order from left to right, and establish a number-width difference coordinate system, and fit the width difference corresponding to all numbered stripes to a second number-width difference curve; determine the second fitting function corresponding to the second number-width difference curve, and determine the second fitting function as the longitudinal film distortion coefficient.
[0046] As an optional implementation, in a second aspect of the present invention, the specific operation method by which the distortion analysis module determines the film distortion coefficient corresponding to the slice image based on the positional relationship between multiple target images and the pattern image of a preset pattern on each target image further includes:
[0047] The rotation distortion coefficient is determined based on the relationship between the pattern images on the two target images; wherein the rotation is the rotation of the cover glass relative to the slide.
[0048] As an optional implementation, in a second aspect of the invention, the periodically repeating pattern on the target surface is a periodically repeating stripe perpendicular to the strip-shaped target, and the periodically repeating stripes on the two target surfaces are identical; the distortion analysis module determines the specific operation method of the rotation film distortion coefficient based on the relationship between the pattern images on the two target images, including:
[0049] The rotation distortion coefficient is determined based on the angular relationship between the stripes on the two target images.
[0050] As an optional implementation, in a second aspect of the invention, the distortion analysis module determines the specific operation method of the rotation film distortion coefficient based on the angular relationship between the stripes on the two target images, including:
[0051] Each stripe on each of the target images is numbered in a clockwise direction;
[0052] Each stripe on one of the target images is matched with each stripe on another target image in descending order of numbering, in ascending order of numbering, to obtain multiple pairs of cross-numbered stripes;
[0053] For each pair of intersecting numbered stripes, calculate the angle between the intersecting numbers of the pair of intersecting numbered stripes in the pattern image;
[0054] Each stripe on one of the target images is matched with a stripe with the same number on another target image to obtain multiple pairs of stripes with the same number;
[0055] For each pair of stripes with the same number, calculate the angle between the same number stripes in the pattern image, and calculate the angle difference between the angle between the same number stripes and the average of all the cross-numbered angles.
[0056] The average value of all the angle differences is calculated as the rotational film distortion coefficient.
[0057] A third aspect of the present invention discloses an electronic device, the electronic device comprising:
[0058] Memory containing executable program code;
[0059] A processor coupled to the memory;
[0060] The processor calls the executable program code stored in the memory to execute some or all of the steps in the aquatic sample slice image processing method according to any of the first aspects of the present invention.
[0061] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked by a processor, are used to execute some or all of the steps in the aquatic sample slice image processing method described in any of the first aspects of the present invention.
[0062] Compared with the prior art, the present invention has the following beneficial effects:
[0063] In this invention, an aquatic sample tissue and multiple target plates surrounding the aquatic sample tissue are sandwiched between a glass slide and a coverslip. The target plates are thin sheets made of flexible material with a pre-defined pattern on their surface. The slide image includes an image of the aquatic sample tissue and multiple target plate images. Because the target plates are thin sheets made of flexible material with a pre-defined pattern on their surface, the slide preparation effect on the tissue tissue during the mutual movement of the coverslip and glass slide during the slide preparation process will also act on the target plates. Since the target plates have a specific pre-defined pattern, the changes in this pattern can reflect the effects of the slide preparation process. Then, based on the positional relationship between the multiple target plate images and the pattern image of the pre-defined pattern on each target plate image, the slide distortion coefficient corresponding to the slide image is determined. This slide distortion coefficient is used to measure the distortion generated during the slide preparation process. Finally, the slide image is dedistorted based on the slide distortion coefficient to obtain a dedistorted slide image. This method can effectively quantify and correct the physical distortions introduced by the slide preparation process, thereby enabling distortion removal operations on the acquired original slide images and restoring images that more realistically reflect the original appearance of aquatic sample tissues, laying a solid foundation for subsequent accurate qualitative and quantitative analysis. Attached Figure Description
[0064] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0065] Figure 1 This is a flowchart illustrating a method for processing aquatic sample slice images according to an embodiment of the present invention;
[0066] Figure 2 This is a schematic diagram of a sliced image disclosed in an embodiment of the present invention;
[0067] Figure 3 This is a schematic diagram of a first fitting curve disclosed in an embodiment of the present invention;
[0068] Figure 4 This is a schematic diagram of another first fitting curve disclosed in an embodiment of the present invention;
[0069] Figure 5 This is a schematic diagram of intersecting numbered stripes and stripes with the same number disclosed in an embodiment of the present invention;
[0070] Figure 6 This is a schematic diagram of the structure of an aquatic sample slice image processing device disclosed in an embodiment of the present invention;
[0071] Figure 7This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. Detailed Implementation
[0072] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0073] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.
[0074] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0075] This invention discloses a method, apparatus, electronic device, and medium for processing aquatic sample slice images, used to perform distortion correction operations on acquired raw slice images, thereby recovering images that more realistically reflect the original tissue morphology. These are described in detail below.
[0076] Example 1
[0077] This invention discloses a method for image processing of aquatic sample slices. This method can be integrated into a specific electronic device, or into a local or cloud server. The electronic device integrating this method can perform a series of operations on the input data according to the steps of the method, ultimately obtaining the corresponding output data. Specifically, the aquatic sample slice may include a glass slide and a coverslip, wherein the aquatic sample tissue and multiple target plates surrounding the aquatic sample tissue are sandwiched between the glass slide and the coverslip. The target plates are thin slices made of flexible material with a preset pattern on their surface; for example... Figure 1 As shown, the method may include:
[0078] Step 101: Obtain slice images of aquatic sample slices.
[0079] Among them, such as Figure 2 As shown, the slice images include aquatic sample tissue images and multiple target images. Since the target is a thin sheet made of flexible material with a preset pattern on its surface, the slide preparation effect caused by the mutual movement of the coverslip and slide during the slide preparation process will also act on the target. Because the target has a specific preset pattern, the effect of the slide preparation process can be reflected through the change of this pattern. The distortion coefficient caused by the slide preparation can be accurately calculated through corresponding analysis.
[0080] Step 102: Determine the film distortion coefficient corresponding to the slice image based on the positional relationship between multiple target images and the pattern image of the preset pattern on each target image.
[0081] Slide distortion refers to the distortion that occurs during the preparation of aquatic sample sections. For example, traditional paraffin or frozen sectioning processes may include multiple steps such as fixation, dehydration, embedding, sectioning, and staining. During this process, the tissue is affected by various physical forces, causing it to lose its original, true morphology. This invention's embodiments reveal that these physical changes can be manifested through the mechanical relationship between the slide and coverslip. For instance, after a series of slide preparation operations, the pressure on certain parts of the coverslip may increase or decrease, or a rotational tendency may arise between the slide and coverslip. This phenomenon is transmitted to the target through the slide and coverslip, ultimately manifesting as a pattern on the target. For example, when the pressure on certain parts of the coverslip increases, the pressure on the flexible target also increases, compressing the pattern on that part of the target and causing changes in size or shape.
[0082] Specifically, in this embodiment of the invention, the film distortion coefficient corresponding to the slice image is determined based on the positional relationship between multiple target images and the pattern image of a preset pattern on each target image. This film distortion coefficient is used to measure the distortion generated during the film preparation process.
[0083] Step 103: Perform distortion correction on the slice image based on the film distortion coefficient to obtain a distortion-corrected slice image.
[0084] As can be seen, in this embodiment of the invention, an aquatic sample tissue and multiple target plates surrounding the aquatic sample tissue are sandwiched between a glass slide and a coverslip. The target plates are thin sheets made of flexible material with a preset pattern on their surface. The slide image includes an image of the aquatic sample tissue and multiple target plate images. Because the target plates are thin sheets made of flexible material with a preset pattern on their surface, the slide preparation effect on the tissue during the mutual movement of the coverslip and glass slide during the slide preparation process will also act on the target plates. Since the target plates have a specific preset pattern, the effect of the slide preparation process can be reflected through changes in this pattern. Then, based on the positional relationship between the multiple target plate images and the pattern image of the preset pattern on each target plate image, the slide preparation distortion coefficient corresponding to the slide image is determined. This slide preparation distortion coefficient is used to measure the distortion generated during the slide preparation process. Finally, the slide image is subjected to a distortion removal operation based on the slide preparation distortion coefficient to obtain a distortion-removed slide image. This method can effectively quantify and correct the physical distortions introduced by the slide preparation process, thereby enabling distortion removal operations on the acquired original slide images and restoring images that more realistically reflect the original appearance of aquatic sample tissues, laying a solid foundation for subsequent accurate qualitative and quantitative analysis.
[0085] In this embodiment of the invention, those skilled in the art will understand that the glass slide and coverslip are transparent carriers for enclosing tissue sections. The transparent carrier located below is called the glass slide, and the transparent carrier located above is called the coverslip. However, as is customary in the industry, "glass slide" and "coverslip" are general terms for all transparent carriers, and therefore do not limit the material of the transparent carrier to glass. Furthermore, various novel enclosing transparent, translucent, or partially transparent carriers should also be included within the semantic scope of "glass slide" and "coverslip."
[0086] In this embodiment of the invention, the influence of the slide preparation process is reflected by the change in the pattern on the target surface. Therefore, the design of the pattern on the target becomes an important influencing factor in the calculation of slide distortion. Thus, in an optional embodiment, a target with two mutually perpendicular strip-shaped thin films sandwiched between the slide and the coverslip is provided, and the target surface is provided with a periodically repeating pattern.
[0087] Furthermore, based on the positional relationship between multiple target images and the pattern image of a preset pattern on each target image, the film distortion coefficient corresponding to the slice image is determined, which may include:
[0088] The lateral film distortion coefficient is determined based on the relationship between the left and right pattern images on one of the two target images.
[0089] The longitudinal film distortion coefficient is determined based on the relationship between the left and right pattern images of the other target image.
[0090] The horizontal and vertical directions are mutually perpendicular directions located within the plane of the glass slide.
[0091] In this optional embodiment, a target with two mutually perpendicular strip-shaped thin films is sandwiched between the slide and the coverslip. The surface of the target has a periodically repeating pattern. This periodically repeating pattern can be parallel stripes along a certain direction, an array of multiple identical cross-shaped patterns, or any other periodically arranged pattern, such as the zigzag pattern on existing calibration plates. When the periodically repeating pattern is a parallel stripe along a certain direction, then as... Figure 2 As shown.
[0092] In this optional embodiment, the lateral slide distortion coefficient is determined based on the relationship between the left and right pattern images on one of the two target images. During slide preparation, physical changes may cause the pressure on the coverslip to increase or decrease on one side in the lateral direction, resulting in different pressures on the left and right sides. This difference in pressure causes a discrepancy between the left and right pattern images on the target image arranged horizontally in the target image. Based on this difference, the lateral distortion can be determined, that is, the lateral slide distortion coefficient is determined based on the relationship between the left and right pattern images on one of the two target images. The longitudinal direction is the same as the lateral direction, and will not be described again in this embodiment.
[0093] In this optional embodiment, the left pattern image and the right pattern image refer to the corresponding pattern images of the left and right portions of the same target, for example, in Figure 2 In this system, any strip-shaped target, whether horizontal or vertical, is divided into a left and right section by its symmetrical central axis. Alternatively, the leftmost range of the strip-shaped target can be set as the left section, and the rightmost range as the right section.
[0094] In yet another alternative embodiment, such as Figure 2 As shown, the periodically repeating pattern on the target surface is a periodically repeating stripe perpendicular to the target, and the original width of the stripe is a.
[0095] Furthermore, determining the lateral film distortion coefficient based on the relationship between the left and right pattern images on one of the two target images may include:
[0096] For one of the two target images, obtain the width information of each stripe in the pattern image of the target image, and calculate the width difference between the width of each stripe and the original width 'a'; number all stripes in order from left to right, and establish a number-width difference coordinate system; fit the width difference corresponding to all numbered stripes to a first number-width difference curve, where the number-width difference curve is used to measure the change of stripes as the number changes; determine the first fitting function corresponding to the first number-width difference curve, and define the first fitting function as the lateral film distortion coefficient.
[0097] In this optional embodiment, the slides and coverslips are mostly made of glass, but are relatively thin overall. Furthermore, during the slide preparation process, different physical changes occur in each part. For example, during the sealing process of the coverslip and the slide, the operation causes pressure changes in different parts in the lateral direction, which leads to distortion of the tissue section.
[0098] In this optional embodiment, the focus shifts from solely on the pressure differences between the left and right sides in the lateral direction to a greater detail of pressure variations along the lateral direction. Specifically, in this optional embodiment, the original width of the stripe is 'a'. If pressure is applied near the stripe, the stripe will be compressed due to the target being made of a flexible material, resulting in a stripe width greater than 'a'. Therefore, this optional embodiment acquires the width information of each stripe in the pattern image on the target image and calculates the width difference between the width of each stripe and the original width 'a'. This width difference reflects the physical changes near each stripe caused by the film preparation process, i.e., the distortion effect. Then, this optional embodiment employs curve fitting to reflect the pressure changes in different parts of the lateral direction caused by the operation through a first fitting function. This allows for a more accurate and reliable determination of the lateral film distortion coefficient.
[0099] For example, a gradual physical change from one side of the coverslip to the other, commonly seen in slide preparation, involves aligning one side first, then the other, and finally securing the coverslip on the slide. The lateral effect of this arrangement can be described as follows: Figure 3 The first fitted curve shown reflects this. At the same time, it's also possible that, in addition to the above, other influencing factors continue to act on the slice, leading to irregular distortion. This complex situation can be addressed through methods such as... Figure 4 The first fitted curve shown reflects this.
[0100] In this optional embodiment, the determination of the longitudinal distortion coefficient is also based on the same principle. Specifically, the determination of the longitudinal film distortion coefficient based on the relationship between the left and right pattern images of the other target image can include:
[0101] For the other of the two target images, obtain the width information of each stripe in the pattern image of the target image, and calculate the width difference between the width of each stripe and the original width a; number all stripes in order from left to right, and establish a number-width difference coordinate system, and fit the width difference corresponding to all numbered stripes to a second number-width difference curve; determine the second fitting function corresponding to the second number-width difference curve, and determine the second fitting function as the longitudinal film distortion coefficient.
[0102] In this embodiment of the invention, the multiple steps of slide preparation, such as fixation, dehydration, embedding, sectioning, and staining, cause distortion in the slide, primarily resulting in different forces on different parts of the slide and coverslip. However, this embodiment also reveals that physical changes during slide preparation can cause rotation, displacement, or a combination of rotational and displacement tendencies between the slide and coverslip. To address the slide distortion caused by this rotation or displacement, in an optional embodiment, the slide distortion coefficient corresponding to the section image is determined based on the positional relationship between multiple target images and the pattern image of a preset pattern on each target image. This may further include:
[0103] The rotation distortion coefficient is determined based on the relationship between the pattern images on the two target images; where rotation refers to the rotation of the coverslip relative to the slide.
[0104] In this optional embodiment, taking a striped pattern as an example, if pressure is applied near the stripe, the stripe will be compressed because the target is made of a flexible material, thus changing the stripe width. If the rotation between the slide and the coverslip affects the stripe, it will influence the shape and spatial position of the stripe. For example, when the coverslip rotates a small angle clockwise relative to the slide, the transverse target made of flexible material will also deform. If the pattern on the target is striped, the stripe will also deflect by a certain angle. This deflection is difficult to calculate precisely using only one target, but since the transverse and longitudinal directions are perpendicular to each other, the pattern relationship between the two can be compared, such as the angular deviation of the stripes, to measure the distortion caused by this rotation.
[0105] In this optional embodiment, further optionally, the periodically repeating pattern on the target surface is periodically repeating stripes perpendicular to the strip-shaped target, and the periodically repeating stripes on the two target surfaces are identical; determining the rotational film distortion coefficient based on the relationship between the pattern images on the two target images may include:
[0106] The rotation distortion coefficient is determined based on the angular relationship between the stripes on the two target images.
[0107] Therefore, this optional embodiment can determine the rotational slide distortion coefficient based on the relationship between the pattern images on the two target images, thereby measuring the slide distortion caused by the rotation of the coverslip relative to the slide, making the obtained slide distortion coefficient more reliable.
[0108] In yet another optional embodiment, determining the rotation distortion coefficient based on the angular relationship between the stripes on the two target images may include:
[0109] For each stripe on each target image, they are numbered in a clockwise direction;
[0110] Each stripe on one target image is matched with each stripe on another target image in descending order of their numbers, in ascending order of their numbers, to obtain multiple pairs of cross-numbered stripes.
[0111] For each pair of intersecting numbered stripes, calculate the angle between the intersecting numbers of the pair of intersecting numbered stripes in the pattern image;
[0112] Match each stripe on one pair of target images with the stripes of the same number on another pair of target images to obtain multiple pairs of stripes with the same number;
[0113] For each pair of stripes with the same number, calculate the angle between the same number stripes in the pattern image, and calculate the angle difference between the angle between the same number stripes and the average of the angles of all intersecting numbers.
[0114] The average value of all the included angle differences is calculated as the rotation film distortion coefficient.
[0115] In this optional embodiment, a pair of intersecting numbered stripes and a pair of identically numbered stripes can be as follows: Figure 5 As shown, in Figure 5 In the case of cross-numbered stripes, since they are located in the same direction of rotation, their deflection angles are basically the same. Therefore, the cross-numbering angle of each pair of cross-numbered stripes in the pattern image is calculated, and then the average value of all cross-numbering angles is calculated. This average value will be used as a reference. For stripes with the same number, each pair of stripes with the same number will amplify the rotation between the slide and the coverslip, and the stripe deflection caused by this rotation will cause an angular difference between a pair of stripes with the same number. Finally, the angle of the same number of each pair of stripes with the same number in the pattern image is calculated, and the angle difference between each angle of the same number and the average value of all cross-numbering angles is calculated. Finally, the average value of all angle differences is used as the rotation distortion coefficient, which can accurately measure the rotation distortion coefficient.
[0116] Example 2
[0117] Embodiment 2 of the present invention discloses an image processing device for aquatic sample slices, wherein the aquatic sample slice may include a glass slide and a coverslip, wherein aquatic sample tissue and multiple targets located around the aquatic sample tissue are sandwiched between the glass slide and the coverslip, and the targets are thin slices made of flexible material with a preset pattern on their surface; for example Figure 6 As shown, the device may include:
[0118] The image acquisition module 201 is used to acquire slice images of aquatic sample slices, which may include aquatic sample tissue images and multiple target images.
[0119] The distortion analysis module 202 is used to determine the slide distortion coefficient corresponding to the slice image based on the positional relationship between multiple target images and the pattern image of the preset pattern on each target image. Slide distortion refers to the distortion generated during the preparation of aquatic sample slices.
[0120] The distortion correction module 203 is used to perform distortion correction on the slice image according to the film distortion coefficient to obtain a distortion-corrected slice image.
[0121] In an optional embodiment, a target consisting of two mutually perpendicular strips is sandwiched between the slide and the coverslip, and the surface of the target is provided with a periodically repeating pattern.
[0122] Furthermore, the distortion analysis module 202 determines the specific operation method of the preparation distortion coefficient corresponding to the slice image based on the positional relationship between multiple target images and the pattern image of the preset pattern on each target image, which may include:
[0123] The lateral film distortion coefficient is determined based on the relationship between the left and right pattern images on one of the two target images.
[0124] The longitudinal film distortion coefficient is determined based on the relationship between the left and right pattern images of the other target image.
[0125] The horizontal and vertical directions are mutually perpendicular directions located within the plane of the glass slide.
[0126] In another alternative embodiment, the periodically repeating pattern on the target surface is a periodically repeating stripe perpendicular to the target, with an original width of a.
[0127] Furthermore, the distortion analysis module 202 determines the specific operation method of the lateral film distortion coefficient based on the relationship between the left and right pattern images on one of the two target images, which may include:
[0128] For one of the two target images, obtain the width information of each stripe in the pattern image of the target image, and calculate the width difference between the width of each stripe and the original width 'a'; number all stripes in order from left to right, and establish a number-width difference coordinate system; fit the width difference corresponding to all numbered stripes to a first number-width difference curve, where the number-width difference curve is used to measure the change of stripes as the number changes; determine the first fitting function corresponding to the first number-width difference curve, and define the first fitting function as the lateral film distortion coefficient.
[0129] In another optional embodiment, the distortion analysis module 202 determines the specific operation method of the longitudinal film distortion coefficient based on the relationship between the left and right pattern images of the other target image, which may include:
[0130] For the other of the two target images, obtain the width information of each stripe in the pattern image of the target image, and calculate the width difference between the width of each stripe and the original width a; number all stripes in order from left to right, and establish a number-width difference coordinate system, and fit the width difference corresponding to all numbered stripes to a second number-width difference curve; determine the second fitting function corresponding to the second number-width difference curve, and determine the second fitting function as the longitudinal film distortion coefficient.
[0131] In another optional embodiment, the distortion analysis module 202 determines the specific operation method of the preparation distortion coefficient corresponding to the slice image based on the positional relationship between multiple target images and the pattern image of a preset pattern on each target image, and may further include:
[0132] The rotation distortion coefficient is determined based on the relationship between the pattern images on the two target images; where rotation refers to the rotation of the coverslip relative to the slide.
[0133] In another optional embodiment, the periodically repeating pattern on the target surface is a periodically repeating stripe perpendicular to the stripe-shaped target, and the periodically repeating stripes on the two target surfaces are identical; the distortion analysis module 202 determines the specific operation method of the rotation film distortion coefficient based on the relationship between the pattern images on the two target images, which may include:
[0134] The rotation distortion coefficient is determined based on the angular relationship between the stripes on the two target images.
[0135] In another optional embodiment, the distortion analysis module 202 determines the specific operation method of the rotation film distortion coefficient based on the angular relationship between the stripes on the two target images, which may include:
[0136] For each stripe on each target image, they are numbered in a clockwise direction;
[0137] Each stripe on one target image is matched with each stripe on another target image in descending order of their numbers, in ascending order of their numbers, to obtain multiple pairs of cross-numbered stripes.
[0138] For each pair of intersecting numbered stripes, calculate the angle between the intersecting numbers of the pair of intersecting numbered stripes in the pattern image;
[0139] Match each stripe on one pair of target images with the stripes of the same number on another pair of target images to obtain multiple pairs of stripes with the same number;
[0140] For each pair of stripes with the same number, calculate the angle between the same number stripes in the pattern image, and calculate the angle difference between the angle between the same number stripes and the average of the angles of all intersecting numbers.
[0141] The average value of all the included angle differences is calculated as the rotation film distortion coefficient.
[0142] Example 3
[0143] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. The electronic device may include:
[0144] Memory 301 storing executable program code;
[0145] Processor 302 coupled to memory 301;
[0146] The processor 302 calls the executable program code stored in the memory 301 to execute some or all of the steps in any of the aquatic sample slice image processing methods in Embodiment 1 of the present invention.
[0147] Example 5
[0148] This invention discloses a computer storage medium storing computer instructions. When these computer instructions are executed by a processor, they implement some or all of the steps in any of the aquatic sample slice image processing methods in Embodiment 1 of this invention.
[0149] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0150] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0151] Finally, it should be noted that the above embodiments are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for processing aquatic sample slice images, characterized in that, The aquatic sample section includes a glass slide and a coverslip, wherein an aquatic sample tissue and multiple target plates surrounding the aquatic sample tissue are sandwiched between the glass slide and the coverslip, and the target plates are thin slices made of flexible material with a predetermined pattern on their surface; the method includes: Obtain slice images of the aquatic sample slices, the slice images including aquatic sample tissue images and multiple target images; Based on the positional relationship between multiple target images and the pattern image of a preset pattern on each target image, the slide distortion coefficient corresponding to the slice image is determined, wherein the slide distortion represents the distortion generated during the preparation of aquatic sample slices; The slice image is subjected to distortion correction based on the distortion coefficient to obtain a distortion-corrected slice image.
2. The aquatic sample slice image processing method according to claim 1, characterized in that, The glass slide and the cover glass slide are sandwiched between two mutually perpendicular strip-shaped targets, and the surface of the targets is provided with a periodically repeating pattern. And, determining the film distortion coefficient corresponding to the slice image based on the positional relationship between multiple target images and the pattern image of a preset pattern on each target image includes: The lateral film distortion coefficient is determined based on the relationship between the left and right pattern images on one of the two target images. The longitudinal film distortion coefficient is determined based on the relationship between the left and right pattern images of the other target image. Wherein, the horizontal direction and the vertical direction are mutually perpendicular directions located in the plane of the glass slide.
3. The aquatic sample slice image processing method according to claim 2, characterized in that, The periodically repeating pattern on the target surface is a periodically repeating stripe perpendicular to the stripe-shaped target, and the original width of the stripe is a. And, determining the lateral distortion coefficient based on the relationship between the left and right pattern images on one of the two target images includes: For one of the two target images, obtain the width information of each stripe in the pattern image on the target image, and calculate the width difference between the width of each stripe and the original width a; number all the stripes in order from left to right, and establish a number-width difference coordinate system, and fit the width difference corresponding to all numbered stripes to a first number-width difference curve, wherein the number-width difference curve is used to measure the change of the stripes as the number changes; determine the first fitting function corresponding to the first number-width difference curve, and determine the first fitting function as the lateral film distortion coefficient.
4. The aquatic sample slice image processing method according to claim 3, characterized in that, The step of determining the longitudinal film distortion coefficient based on the relationship between the left and right pattern images of the other target image includes: For the other of the two target images, obtain the width information of each stripe in the pattern image on the target image, and calculate the width difference between the width of each stripe and the original width a; number all the stripes in order from left to right, and establish a number-width difference coordinate system, and fit the width difference corresponding to all numbered stripes to a second number-width difference curve; determine the second fitting function corresponding to the second number-width difference curve, and determine the second fitting function as the longitudinal film distortion coefficient.
5. The aquatic sample slice image processing method according to claim 1, characterized in that, The step of determining the film distortion coefficient corresponding to the slice image based on the positional relationship between multiple target images and the pattern image of a preset pattern on each target image further includes: The rotation distortion coefficient is determined based on the relationship between the pattern images on the two target images; wherein the rotation is the rotation of the cover glass relative to the slide.
6. The aquatic sample slice image processing method according to claim 5, characterized in that, The periodically repeating pattern on the target surface is a periodically repeating stripe perpendicular to the striped target, and the periodically repeating stripes on the two target surfaces are identical; the determination of the rotation distortion coefficient based on the relationship between the pattern images on the two target images includes: The rotation distortion coefficient is determined based on the angular relationship between the stripes on the two target images.
7. The aquatic sample slice image processing method according to claim 6, characterized in that, The step of determining the rotation distortion coefficient based on the angular relationship between the stripes on the two target images includes: Each stripe on each of the target images is numbered in a clockwise direction; Each stripe on one of the target images is matched with each stripe on another target image in descending order of numbering, in ascending order of numbering, to obtain multiple pairs of cross-numbered stripes; For each pair of intersecting numbered stripes, calculate the angle between the intersecting numbers of the pair of intersecting numbered stripes in the pattern image; Each stripe on one of the target images is matched with a stripe with the same number on another target image to obtain multiple pairs of stripes with the same number; For each pair of stripes with the same number, calculate the angle between the same number stripes in the pattern image, and calculate the angle difference between the angle between the same number stripes and the average of all the cross-numbered angles. The average value of all the angle differences is calculated as the rotational film distortion coefficient.
8. An image processing device for aquatic sample slices, characterized in that, The aquatic sample section includes a glass slide and a coverslip, wherein an aquatic sample tissue and multiple target plates surrounding the aquatic sample tissue are sandwiched between the glass slide and the coverslip, and the target plates are thin slices made of flexible material with a predetermined pattern on their surface; the device includes: The image acquisition module is used to acquire slice images of the aquatic sample slices, the slice images including aquatic sample tissue images and multiple target images; The distortion analysis module is used to determine the slide distortion coefficient corresponding to the slice image based on the positional relationship between multiple target images and the pattern image of a preset pattern on each target image, wherein the slide distortion represents the distortion generated during the preparation of aquatic sample slices; The distortion correction module is used to perform distortion correction on the slice image according to the film distortion coefficient to obtain a distortion-corrected slice image.
9. An electronic device, characterized in that, The electronic device includes: a memory storing executable program code; a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute the aquatic sample slice image processing method as described in any one of claims 1-7.
10. A computer storage medium, characterized in that, The computer storage medium stores computer instructions, which, when executed by a processor, implement the aquatic sample slice image processing method as described in any one of claims 1-7.
Citation Information
Patent Citations
Method and device for generating digital slice based on biological specimen slice
CN110298905A
Real-time image splicing method and system without illumination influence
CN119648522A