CN115797198A - Image mark correction method and related equipment - Google Patents

Image mark correction method and related equipment Download PDF

Info

Publication number
CN115797198A
CN115797198A CN202211304264.7A CN202211304264A CN115797198A CN 115797198 A CN115797198 A CN 115797198A CN 202211304264 A CN202211304264 A CN 202211304264A CN 115797198 A CN115797198 A CN 115797198A
Authority
CN
China
Prior art keywords
image
width
height
representing
display window
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211304264.7A
Other languages
Chinese (zh)
Other versions
CN115797198B (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.)
Beijing Sinomedisite Bio Tech Co Ltd
Original Assignee
Beijing Sinomedisite Bio Tech 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 Beijing Sinomedisite Bio Tech Co Ltd filed Critical Beijing Sinomedisite Bio Tech Co Ltd
Priority to CN202211304264.7A priority Critical patent/CN115797198B/en
Publication of CN115797198A publication Critical patent/CN115797198A/en
Application granted granted Critical
Publication of CN115797198B publication Critical patent/CN115797198B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The application provides an image mark correction method and related equipment, wherein the method comprises the following steps: calculating to obtain the image pixel amplification ratio according to the acquired image parameters and the acquired image display window parameters; calculating to obtain a centering offset according to the image pixel amplification ratio; and calculating to obtain the corrected image mark according to the centered offset and the image pixel amplification ratio. According to the embodiment of the application, the image pixel amplification ratio and the centered offset are obtained through calculation by obtaining the image and the basic parameters of the image display window, and the corrected image mark is further obtained through calculation. The image mark can be effectively corresponding to the adjusted image under the condition of ensuring the maximum display state of the image, and the display error between the image mark and the image is effectively reduced.

Description

Image mark correction method and related equipment
Technical Field
The present application relates to the field of image marking technologies, and in particular, to an image marking correction method and a related device.
Background
In the prior art, the situation that the image needing fixed marks cannot be well matched with the marks often occurs, manual matching is generally adopted or matching is learned through training a neural network, but the manual matching process is too complex, the training neural network needs a large number of samples, the training time is generally long, and the image marks cannot be quickly corrected.
Disclosure of Invention
In view of the above, an object of the present application is to provide an image mark rectification method and a related apparatus.
In view of the above, the present application provides an image mark correction method, including:
calculating to obtain the image pixel amplification ratio according to the acquired image parameters and the acquired image display window parameters;
calculating to obtain a centering offset according to the image pixel amplification ratio;
and calculating to obtain the corrected image mark according to the centered offset and the image pixel amplification ratio.
In one possible implementation, the image parameters include an image width and an image height; the parameters of the image display window comprise the width and the height of the image display window;
wherein, according to the obtained image parameter and the obtained image display window parameter, calculating to obtain the image pixel magnification ratio, and the method comprises the following steps:
calculating to obtain an image pixel width amplification ratio according to the image width and the image display window width;
calculating to obtain the image pixel height amplification ratio according to the image height and the image display window height;
and taking the minimum value of the image pixel width amplification scale and the image pixel height amplification scale as the image pixel amplification scale.
In one possible implementation, the image pixel width magnification ratio is calculated by:
Figure 45564DEST_PATH_IMAGE001
wherein, P w Representing the enlargement ratio, W, of the pixel width of an image i Representing the width of the image display window, W j Representing the image width.
In one possible implementation, the image pixel height magnification ratio is calculated by:
Figure 154596DEST_PATH_IMAGE002
wherein, P h Representing the high magnification of the image pixels, H i Representing the height of the image display window, H j Representing the image height.
In one possible implementation, the centering offset includes a width centering offset and a height centering offset;
wherein, according to the image pixel amplification ratio, calculating to obtain a centering offset, comprising:
calculating to obtain a width centering offset according to the image width, the image display window width and the image pixel amplification ratio;
and calculating to obtain the height centering offset according to the image height, the image display window height and the image pixel amplification ratio.
In one possible implementation, the width centering offset is calculated by:
Figure 627166DEST_PATH_IMAGE003
wherein L is w Denotes the width-centered offset, W i Representing the width of the image display window, W j Representing the width, P, of the picture w Representing the enlargement ratio of the pixel width of the image, P h Representing the image pixel highly magnified scale.
In one possible implementation, the height centering offset is calculated by:
Figure 740615DEST_PATH_IMAGE004
wherein L is h Denotes the width-centered offset, H i Representing the width of the image display window, H j Representing the width, P, of the picture w Representing the enlargement ratio of the pixel width of the image, P h Representing the image pixel highly magnified scale.
In one possible implementation, the rectified image mark includes a plurality of rectified coordinate points;
wherein, the calculating according to the centered offset and the image pixel magnification ratio to obtain the corrected image mark comprises:
calculating to obtain corrected coordinates of the corrected coordinate points according to the centered offset and the image magnification ratio;
and determining the corrected image mark according to the correction coordinate.
Based on the same inventive concept, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the image mark rectification method according to any one of the above items when executing the computer program.
Based on the same inventive concept, the present application further provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are configured to cause a computer to execute any one of the image mark rectification methods described above.
From the above, according to the image mark correction method and the related device, the image pixel magnification ratio is calculated according to the acquired image parameters and the acquired image display window parameters; calculating to obtain a centering offset according to the image pixel amplification ratio; and calculating to obtain the corrected image mark according to the centered offset and the image pixel amplification ratio. The image mark can be corresponding to the adjusted image effectively under the condition of ensuring that the image is displayed to the maximum extent, and the display error between the image mark and the image is reduced on the basis of effectively reducing the correction difficulty and the complexity of the scheme.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the related art, the drawings needed to be used in the description of the embodiments or the related art will be briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart illustrating an image mark rectification method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of an image mark at an image magnification scale of 1 according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an image mark when the centering offset is 0 according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an image mark without subtracting the width of the frame according to the embodiment of the present application;
FIG. 5 is a schematic diagram of a corrected image mark according to an embodiment of the present application;
fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to the accompanying drawings in combination with specific embodiments.
It should be noted that technical terms or scientific terms used in the embodiments of the present application should have a general meaning as understood by those having ordinary skill in the art to which the present application belongs, unless otherwise defined. The use of "first," "second," and similar terms in the embodiments of the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
As described in the background section, in the image label correction method in the related art, for the situation that the label and the image cannot be well matched often occurs in the image requiring the fixed label, manual matching is generally adopted or matching is learned through training a neural network, but the process of manual matching is too complicated, the training neural network requires a large number of samples, and meanwhile, the training time is generally long, and the image label cannot be corrected quickly.
In view of the above, the embodiment of the present application provides an image mark correction method, which calculates an image pixel magnification ratio according to an acquired image parameter and an acquired image display window parameter; calculating to obtain a centering offset according to the image pixel amplification ratio; and calculating to obtain the corrected image mark according to the centered offset and the image pixel amplification ratio. The image mark can be corresponding to the adjusted image effectively under the condition of ensuring that the image is displayed to the maximum extent, and the display error between the image mark and the image is reduced on the basis of effectively reducing the correction difficulty and the complexity of the scheme.
Hereinafter, the technical means of the embodiments of the present application will be described in detail by specific examples. The plantar pressure region marking and the plantar pressure image are taken as an example in the following embodiments.
The plantar pressure subarea refers to ten subareas of the plantar based on the planning, and the parts with overhigh pressure values can be conveniently observed by a doctor through subarea display, so that clinical diagnosis is given.
The tenth zones respectively mean: an inner heel region, an outer heel region, an inner midfoot region, an outer midfoot region, a first metatarsal region, a second metatarsal region, a lateral metatarsal region, a big box toe region, a second toe region, a lateral toe region.
In practical cases, the sole pressure plate can return the original image and 19 point coordinates, and the 10 partitions are obtained by connecting the 19 point coordinates. Because the original image needs to be enlarged or reduced in combination with the size of the image display window, and in order to ensure that 19 point coordinates correspond to the original image, calculation operation needs to be performed on 19 coordinate values, and the error between the position of the original image and the position of the foot-shaped image during display is eliminated.
Referring to fig. 1, an image mark correction method according to an embodiment of the present application includes the following steps:
step S101, calculating to obtain an image pixel amplification ratio according to the acquired image parameters and the acquired image display window parameters;
step S102, calculating to obtain a centering offset according to the image pixel amplification ratio;
and step S103, calculating to obtain the corrected image mark according to the centered offset and the image pixel amplification ratio.
For step S101, the image parameters mentioned therein include an image width and an image height, and the image display window parameters include an image display window width and an image display window height. And calculating to obtain the image pixel magnification ratio according to the image parameters and the image display window parameters.
Specifically, firstly, calculating to obtain an image pixel width amplification ratio according to the image width and the image display window width;
and calculating to obtain the image pixel height amplification ratio according to the image height and the image display window height.
Further, the image pixel width enlargement ratio is calculated by the following formula:
Figure 665846DEST_PATH_IMAGE001
wherein, P w Representing the enlargement ratio of the pixel width of the image, W i Representing the width of the image display window, W j Representing the image width.
The image pixel height magnification ratio is calculated by:
Figure 890154DEST_PATH_IMAGE002
wherein, P h Representing the high magnification of the image pixels, H i Representing the height of the image display window, H j Representing the image height.
In this embodiment, the obtained image parameter is 200 × 200px, the image display window parameter is 500 × 300px, and accordingly, the obtained image width is 200px, the image height is 200px, the image display window width is 500px, and the image display window height is 300px.
Further, the image pixel width magnification ratio is calculated according to the formula shown above:
Figure 951651DEST_PATH_IMAGE005
an image pixel width magnification of 2.5 was obtained.
The image pixel height magnification ratio is calculated according to the formula shown above:
Figure 173685DEST_PATH_IMAGE006
the resulting image pixel height magnification is 1.5.
And after obtaining the image pixel width amplification ratio and the image pixel height amplification ratio, taking the minimum value of the image pixel width amplification ratio and the image pixel height amplification ratio as the image pixel amplification ratio. This is because it is necessary to avoid the image size from exceeding the boundary of the image display window after enlargement or reduction, and therefore it is necessary to take the minimum value of the image pixel width enlargement ratio and the image pixel height enlargement ratio as the final image pixel enlargement ratio.
Specifically, in this embodiment, the enlargement ratio of the image pixel width is 2.5 and the enlargement ratio of the image pixel height is 1.5, which are obtained as described above, and the enlargement ratio of the image pixel is 1.5 in this embodiment.
Further, after the image pixel amplification ratio is determined, the centering offset is calculated according to the image pixel amplification ratio. Specifically, the image width is multiplied by the image pixel amplification ratio according to the image width and the window width distance to obtain the amplified image width, the amplified image width is subtracted by the window width to obtain the vacant width value of the image in the image display window, and the width centering offset can be obtained by dividing the value by 2.
The purpose of the above steps is to make the magnified image be located in the center of the image display window. The practical meaning of the above-mentioned centering offset is the distance that the image moves based on the origin in the width direction and the height direction in the image display window. In the embodiment of the application, the origin is set as the coordinate point at the upper left corner of the image display window. It should be noted that the origin may also be set at other positions, and the relative coordinates of the changed origin may be introduced into the subsequent calculation process when the centering offset is subsequently calculated.
Specifically, the width centering offset is calculated according to the image width, the image display window width and the image pixel amplification ratio;
and calculating to obtain the height centering offset according to the image height, the image display window height and the image pixel amplification ratio.
Further, the width centering offset is calculated by:
Figure 586212DEST_PATH_IMAGE003
wherein L is w Denotes the width-centered offset, W i Representing the width of the image display window, W j Representing the width, P, of the picture w Representing the enlargement ratio of the pixel width of the image, P h Representing the image pixel highly magnified scale.
The height centering offset is calculated by:
Figure 614210DEST_PATH_IMAGE004
wherein L is h Denotes the width-centered offset, H i Representing the width of the image display window, H j Representing the width, P, of the picture w Representing the enlargement ratio, P, of the pixel width of an image h Representing the image pixel highly magnified scale.
In this embodiment, the width centering offset is calculated according to the formula shown above:
Figure 795793DEST_PATH_IMAGE007
further, the height centering offset is calculated according to the formula shown above:
Figure 985466DEST_PATH_IMAGE008
as can be seen from the above, in the embodiment of the present application, the width centering offset is 100px, and the height centering offset is 0px.
Further, the corrected image mark is obtained through calculation according to the centered offset and the image pixel amplification ratio.
The rectified image mark includes a plurality of rectified coordinate points. Calculating to obtain corrected coordinates of the corrected coordinate points according to the centered offset and the image magnification ratio;
and determining the corrected image mark according to the correction coordinate.
Specifically, after the centering offset is found, original coordinate point data in the image mark is obtained, wherein the original coordinate point data comprises an abscissa of the original coordinate point and an ordinate of the original coordinate point. Then, calculating to obtain a corrected abscissa of the coordinate point according to the width centering offset, the image pixel amplification ratio and the abscissa of the original coordinate point;
and calculating to obtain a corrected ordinate of the coordinate point according to the height centering offset, the image pixel amplification ratio and the ordinate of the original coordinate point.
Further, the correction abscissa is calculated by the following formula:
Figure 885289DEST_PATH_IMAGE009
wherein R is w Indicating the corrected abscissa, L w Denotes the width centering offset, x denotes the abscissa of the original coordinate point, F denotes the bezel width,
Figure 638350DEST_PATH_IMAGE010
representing the image pixel magnification.
The correction ordinate is calculated by the following formula:
Figure 940018DEST_PATH_IMAGE011
wherein R is h Indicating the correction ordinate, L h Denotes the height centering offset, y denotes the ordinate of the original coordinate point, F denotes the bezel width,
Figure 300593DEST_PATH_IMAGE010
representing the image pixel magnification.
It should be noted that the width of the frame mentioned in the above formula is set manually, and in this embodiment is a fixed value of 20px, the frame needs to be automatically subtracted when returning to the original image, and in order to reduce the display error, the frame needs to be subtracted when calculating.
In the present embodiment, taking one of the coordinate points in the plantar pressure image mark as an example for illustration, the coordinates of the original coordinate point are (50,100).
According to the data, the calculation process of correcting the abscissa comprises the following steps:
Figure 687712DEST_PATH_IMAGE012
the calculation process of the correction ordinate is as follows:
Figure 57513DEST_PATH_IMAGE013
therefore, the final calculated corrected coordinate is (145,120). In this embodiment, the sole pressure plate finally returns 19 coordinates, the 19 original coordinates are matched as described above, the remaining corrected coordinates are calculated, and the corrected image mark is determined based on the corrected coordinates.
Referring to fig. 2, a schematic diagram of an image mark when an image magnification ratio is 1 is shown in the embodiment of the present application. Referring to fig. 3, a schematic diagram of an image mark when the centering offset is 0 according to an embodiment of the present application is shown. Referring to fig. 4, a schematic diagram of an image mark when the frame width is not subtracted according to an embodiment of the present application. Referring to fig. 5, a schematic diagram of an image after rectification according to an embodiment of the present application is marked.
As can be seen from fig. 2 to 5, the degree of matching between the corrected image mark and the image is greatly improved compared with the uncorrected image, and the image is located at the center of the image display frame for easy viewing.
According to the embodiment, the image mark correction method obtains the image pixel magnification ratio through calculation according to the acquired image parameters and the acquired image display window parameters; calculating to obtain a centering offset according to the image pixel amplification ratio; and calculating to obtain the corrected image mark according to the centered offset and the image pixel amplification ratio. The image mark can be corresponding to the adjusted image effectively under the condition of ensuring that the image is displayed to the maximum extent, and the display error between the image mark and the image is reduced on the basis of effectively reducing the correction difficulty and the complexity of the scheme.
It should be noted that the method of the embodiment of the present application may be executed by a single device, such as a computer or a server. The method of the embodiment can also be applied to a distributed scene and completed by the mutual cooperation of a plurality of devices. In such a distributed scenario, one of the multiple devices may only perform one or more steps of the method of the embodiment, and the multiple devices interact with each other to complete the method.
It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Based on the same inventive concept, corresponding to the method of any embodiment described above, the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, the image mark rectification method described in any embodiment above is implemented.
Fig. 6 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
The electronic device of the above embodiment is used to implement the corresponding image mark correction method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to any of the above embodiments, the present application further provides a non-transitory computer readable storage medium storing computer instructions for causing the computer to execute the image mark rectification method according to any of the above embodiments.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the image mark rectification method according to any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the context of the present application, features from the above embodiments or from different embodiments may also be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown in the provided figures for simplicity of illustration and discussion, and so as not to obscure the embodiments of the application. Further, devices may be shown in block diagram form in order to avoid obscuring embodiments of the application, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the embodiments of the application are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the application, it should be apparent to one skilled in the art that the embodiments of the application can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures, such as Dynamic RAM (DRAM), may use the discussed embodiments.
The present embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present application are intended to be included within the scope of the present application.

Claims (10)

1. An image mark correction method, comprising:
calculating to obtain the image pixel amplification ratio according to the acquired image parameters and the acquired image display window parameters;
calculating to obtain a centering offset according to the image pixel amplification ratio;
and calculating to obtain the corrected image mark according to the centered offset and the image pixel amplification ratio.
2. The method of claim 1, wherein the image parameters include an image width and an image height; the parameters of the image display window comprise the width and the height of the image display window;
wherein, the calculating to obtain the image pixel magnification ratio according to the acquired image parameters and the acquired image display window parameters comprises:
calculating to obtain an image pixel width amplification ratio according to the image width and the image display window width;
calculating to obtain an image pixel height amplification ratio according to the image height and the image display window height;
and taking the minimum value of the image pixel width amplification scale and the image pixel height amplification scale as the image pixel amplification scale.
3. The method of claim 2, wherein the image pixel width magnification scale is calculated by:
Figure 631446DEST_PATH_IMAGE001
wherein, P w Representing the enlargement ratio of the pixel width of the image, W i Representing the width of the image display window, W j Representing the image width.
4. The method of claim 2, wherein the image pixel height magnification scale is calculated by:
Figure 513952DEST_PATH_IMAGE002
wherein, P h Representing the high magnification of the image pixels, H i Representing the height of the image display window, H j Representing the image height.
5. The method of claim 2, wherein the centering offset comprises a width centering offset and a height centering offset;
wherein, according to the image pixel amplification ratio, calculating to obtain a centering offset, comprising:
calculating to obtain a width centering offset according to the image width, the image display window width and the image pixel amplification ratio;
and calculating to obtain the height centering offset according to the image height, the image display window height and the image pixel amplification ratio.
6. The method of claim 5, wherein the width centering offset is calculated by:
Figure 866436DEST_PATH_IMAGE003
wherein L is w Denotes the width-centered offset, W i Representing the width of the image display window, W j Representing the width of the picture, P w Representing the enlargement ratio of the pixel width of the image, P h Representing the image pixel highly magnified scale.
7. The method of claim 5, wherein the height centering offset is calculated by:
Figure 746667DEST_PATH_IMAGE004
wherein L is h Denotes the width-centered offset, H i Representing the width of the image display window, H j Representing the width, P, of the picture w Representing the enlargement ratio of the pixel width of the image, P h Representing the image pixel highly magnified scale.
8. The method of claim 1, wherein the rectified image signature comprises a plurality of rectified coordinate points;
wherein, the calculating according to the centered offset and the image pixel magnification ratio to obtain the corrected image mark comprises:
calculating to obtain corrected coordinates of the corrected coordinate points according to the centered offset and the image magnification ratio;
and determining the corrected image mark according to the correction coordinate.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 8 when executing the program.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 8.
CN202211304264.7A 2022-10-24 2022-10-24 Image mark correction method and related equipment Active CN115797198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211304264.7A CN115797198B (en) 2022-10-24 2022-10-24 Image mark correction method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211304264.7A CN115797198B (en) 2022-10-24 2022-10-24 Image mark correction method and related equipment

Publications (2)

Publication Number Publication Date
CN115797198A true CN115797198A (en) 2023-03-14
CN115797198B CN115797198B (en) 2023-05-23

Family

ID=85433565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211304264.7A Active CN115797198B (en) 2022-10-24 2022-10-24 Image mark correction method and related equipment

Country Status (1)

Country Link
CN (1) CN115797198B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116661663A (en) * 2023-08-02 2023-08-29 北京华益精点生物技术有限公司 Foot type display method and related equipment
CN117100250A (en) * 2023-07-10 2023-11-24 北京华益精点生物技术有限公司 Toe position determining method and device, electronic equipment and storage medium
CN117100250B (en) * 2023-07-10 2024-05-28 北京华益精点生物技术有限公司 Toe position determining method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120177288A1 (en) * 2009-08-04 2012-07-12 Vesalis Image-processing method for correcting a target image with respect to a reference image, and corresponding image-processing device
US20130321674A1 (en) * 2012-05-31 2013-12-05 Apple Inc. Image Signal Processing Involving Geometric Distortion Correction
US20150363666A1 (en) * 2013-02-28 2015-12-17 Nec Corporation Image processing method and image processing device
US20180158173A1 (en) * 2016-12-02 2018-06-07 Apple Inc. Adaptive pixel uniformity compensation for display panels
CN110766615A (en) * 2019-09-09 2020-02-07 北京美院帮网络科技有限公司 Picture correction method, device, terminal and computer readable storage medium
CN111161385A (en) * 2019-12-30 2020-05-15 北京奇艺世纪科技有限公司 Image rendering method and device, electronic equipment and storage medium
US20210087920A1 (en) * 2018-02-21 2021-03-25 E.V. Offshore Limited Image Correction Methods for Downhole Inspection Tools
CN113538252A (en) * 2020-04-17 2021-10-22 嘉楠明芯(北京)科技有限公司 Image correction method and device
CN114143544A (en) * 2021-11-05 2022-03-04 北京乐驾科技有限公司 Compression method of black and white picture, electronic equipment and storage medium
CN114584700A (en) * 2020-11-30 2022-06-03 京东方科技集团股份有限公司 Focusing marking method, marking device and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120177288A1 (en) * 2009-08-04 2012-07-12 Vesalis Image-processing method for correcting a target image with respect to a reference image, and corresponding image-processing device
US20130321674A1 (en) * 2012-05-31 2013-12-05 Apple Inc. Image Signal Processing Involving Geometric Distortion Correction
US20150363666A1 (en) * 2013-02-28 2015-12-17 Nec Corporation Image processing method and image processing device
US20180158173A1 (en) * 2016-12-02 2018-06-07 Apple Inc. Adaptive pixel uniformity compensation for display panels
US20210087920A1 (en) * 2018-02-21 2021-03-25 E.V. Offshore Limited Image Correction Methods for Downhole Inspection Tools
CN110766615A (en) * 2019-09-09 2020-02-07 北京美院帮网络科技有限公司 Picture correction method, device, terminal and computer readable storage medium
CN111161385A (en) * 2019-12-30 2020-05-15 北京奇艺世纪科技有限公司 Image rendering method and device, electronic equipment and storage medium
CN113538252A (en) * 2020-04-17 2021-10-22 嘉楠明芯(北京)科技有限公司 Image correction method and device
CN114584700A (en) * 2020-11-30 2022-06-03 京东方科技集团股份有限公司 Focusing marking method, marking device and electronic equipment
CN114143544A (en) * 2021-11-05 2022-03-04 北京乐驾科技有限公司 Compression method of black and white picture, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117100250A (en) * 2023-07-10 2023-11-24 北京华益精点生物技术有限公司 Toe position determining method and device, electronic equipment and storage medium
CN117100250B (en) * 2023-07-10 2024-05-28 北京华益精点生物技术有限公司 Toe position determining method and device, electronic equipment and storage medium
CN116661663A (en) * 2023-08-02 2023-08-29 北京华益精点生物技术有限公司 Foot type display method and related equipment

Also Published As

Publication number Publication date
CN115797198B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN111340752A (en) Screen detection method and device, electronic equipment and computer readable storage medium
CN105005972A (en) Shooting distance based distortion correction method and mobile terminal
CN108052565B (en) Transparent processing method and device for page
CN115797198B (en) Image mark correction method and related equipment
US20140300608A1 (en) System and method for generating high dynamic range images
WO2021129345A1 (en) Scene map building method, device, and storage medium
US10510163B2 (en) Image processing apparatus and image processing method
US20240028287A1 (en) Splice screen driving method and drving device thereof, electronic device and computer-readable medium
CN111767206B (en) Statistical method and device for content unit exposure presentation rate and electronic equipment
CN103729844B (en) Motionlessness detecting method and device
CN113703653A (en) Image processing method, device, equipment and computer readable storage medium
CN112395827A (en) Drawing method of tree structure diagram and mobile terminal
US11763509B2 (en) Frame calibration for robust video synthesis
US11669234B2 (en) Method for processing aerial view, electronic device, and storage medium
CN113012028B (en) Image processing method, device, equipment and storage medium
CN117100250B (en) Toe position determining method and device, electronic equipment and storage medium
CN112770015B (en) Data processing method and related device
CN117314745A (en) Foot-type image display method and device, electronic equipment and storage medium
KR20140063125A (en) Image processing method for enhancing image quality using different coefficients according to region and device there-of
US11836839B2 (en) Method for generating animation figure, electronic device and storage medium
CN108154184B (en) Personality type determining method and device
CN113516717A (en) Camera device external parameter calibration method, electronic equipment and storage medium
CN117876278A (en) TV distortion calculation method and system
CN116580654A (en) Test method and test equipment
CN114972262A (en) Depth image calculation method, device, equipment and medium

Legal Events

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