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

Image mark correction method and related equipment Download PDF

Info

Publication number
CN115797198B
CN115797198B CN202211304264.7A CN202211304264A CN115797198B CN 115797198 B CN115797198 B CN 115797198B CN 202211304264 A CN202211304264 A CN 202211304264A CN 115797198 B CN115797198 B CN 115797198B
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.)
Active
Application number
CN202211304264.7A
Other languages
Chinese (zh)
Other versions
CN115797198A (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

Abstract

The application provides an image mark correction method and related equipment, wherein the method comprises the following steps: calculating to obtain an 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 proportion; and calculating according to the centering offset and the image pixel magnification ratio to obtain a corrected image mark. According to the embodiment of the application, the image pixel amplification proportion and the centering offset are obtained through calculation by acquiring the basic parameters of the image and the image display window, and the corrected image mark is further obtained through calculation. The image mark can be corresponding to the adjusted image under the condition that the image is ensured to be displayed to the greatest extent, 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 application relates to the technical field of image marking, in particular to an image marking correction method and related equipment.
Background
In the prior art, for the situation that the image needing to fix the mark can not be well matched with the image, manual matching is generally adopted or the matching is learned through a training neural network, but the manual matching process is too complex, a large number of samples are required for training the neural network, the training time is generally longer, and the image mark can not be quickly corrected.
Disclosure of Invention
In view of the foregoing, an object of the present application is to provide an image mark correction method and related apparatus.
Based on the above objects, the present application provides an image mark correction method, including:
calculating to obtain an 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 proportion;
and calculating according to the centering offset and the image pixel magnification ratio to obtain a corrected image mark.
In one possible implementation, the image parameters include an image width and an image height; the image display window parameters comprise an image display window width and an image display window height;
the image pixel amplification ratio is calculated according to the acquired image parameters and the acquired image display window parameters, 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 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 ratio and the image pixel height amplification ratio as the image pixel amplification ratio.
In one possible implementation, the image pixel width magnification ratio is calculated by:
Figure 45564DEST_PATH_IMAGE001
wherein P is w Representing the image pixel width enlargement ratio, W i Representing the width of an 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 is h Representing the image pixel height magnification ratio, H i Representing the height of the image display window, H j Representing the image height.
In one possible implementation, the centering offsets include a width centering offset and a height centering offset;
the calculating, according to the image pixel amplification ratio, a centering offset includes:
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 Represents the width centering offset, W i Representing the width of an image display window, W j Representing image width, P w Representing the image pixel width enlargement ratio, P h Representing the image pixel height magnification scale.
In one possible implementation, the height centering offset is calculated by:
Figure 740615DEST_PATH_IMAGE004
wherein L is h Represents the width centering offset, H i Representing the width of the image display window, H j Representing image width, P w Representing the image pixel width enlargement ratio, P h Representing the image pixel height magnification scale.
In one possible implementation, the corrected image marker includes a plurality of corrected coordinate points;
the image mark corrected according to the centering offset and the image pixel amplification ratio comprises the following steps:
calculating to obtain corrected coordinates of the plurality of corrected coordinate points according to the centering offset and the image magnification ratio;
and determining the corrected image mark according to the correction coordinates.
Based on the same inventive concept, the embodiment of the application also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, and is characterized in that the processor executes the program to implement the image mark correction method according to any one of the above.
Based on the same inventive concept, the embodiments of the present application further provide a non-transitory computer readable storage medium, where the non-transitory computer readable storage medium stores computer instructions, where the computer instructions are configured to cause a computer to perform any one of the above-mentioned image marker correction methods.
From the above, it can be seen that the image mark correction method and the related device described in the present application calculate the image pixel magnification 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 proportion; and calculating according to the centering offset and the image pixel magnification ratio to obtain a corrected image mark. The method effectively ensures that the image mark corresponds to the adjusted image under the condition that the image is displayed to the greatest extent, and reduces the display error between the image mark and the image 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 of the present application or related art, the drawings that are required to be used in the description of the embodiments or related art will be briefly described below, and it is apparent that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort to those of ordinary skill in the art.
FIG. 1 is a flowchart of an image marker correction method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an image marking at an image magnification of 1 according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an image tag with a centering offset of 0 according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an image mark when the frame width is not subtracted in an embodiment of the present application;
FIG. 5 is a schematic illustration of a corrected image signature in accordance with 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
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail below with reference to the accompanying drawings.
It should be noted that unless otherwise defined, technical or scientific terms used in the embodiments of the present application should be given the ordinary meaning as understood by one of ordinary skill in the art to which the present application belongs. The terms "first," "second," and the like, as used in embodiments of the present application, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", etc. are used merely to indicate relative positional relationships, which may also be changed when the absolute position of the object to be described is changed.
As described in the background art, in the image marking correction method in the related art, for the situation that the image to be marked is required to be fixed, the image cannot be well matched with the mark, manual matching is generally adopted or the matching is learned through training a neural network, but the manual matching process is too complex, a large number of samples are required for training the neural network, meanwhile, the training time is generally longer, and the image marking cannot be corrected quickly.
In view of the above, the embodiments of the present application provide 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 proportion; and calculating according to the centering offset and the image pixel magnification ratio to obtain a corrected image mark. The method effectively ensures that the image mark corresponds to the adjusted image under the condition that the image is displayed to the greatest extent, and reduces the display error between the image mark and the image on the basis of effectively reducing the correction difficulty and the complexity of the scheme.
The technical solutions of the embodiments of the present application are described in detail below by specific embodiments. The sole pressure partitioning marks and the sole pressure images are exemplified in the following embodiments.
The sole pressure subareas refer to ten subareas of the sole based on the dig theory, and the subarea display is convenient for doctors to observe the parts with the excessively high pressure value, so that the clinical diagnosis is given.
Ten partitions refer to: a medial heel region, a lateral heel region, a medial midfoot region, a lateral midfoot region, a first metatarsal region, a second metatarsal region, a lateral metatarsal region, a big toe region, a second toe region, and a lateral toe region.
In practical cases, the plantar pressure plate can return to the original image and 19 point coordinates, and the 10 subareas are obtained after the 19 point coordinates are connected. Since the original image needs to be enlarged or reduced in combination with the size of the image display window, in order to ensure that 19 point coordinates correspond to the original image, the calculation operation needs to be performed on 19 coordinate values, and errors between the display time and the foot-type image position are eliminated.
Referring to fig. 1, the image mark correction method according to the 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 according to the centering offset and the image pixel magnification ratio to obtain a corrected image mark.
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 the image pixel magnification ratio according to the image parameters and the image display window parameters.
Specifically, firstly, according to the image width and the image display window width, calculating to obtain an image pixel width amplification ratio;
and calculating to obtain the image pixel height amplifying 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 is w Representing the image pixel width enlargement ratio, W i Representing the width of an image display window, W j Representing the image width.
The image pixel height magnification ratio is calculated by the following formula:
Figure 890154DEST_PATH_IMAGE002
wherein P is h Representing the image pixel height magnification ratio, H i Representing the height of the image display window, H j Representing the image height.
In this embodiment, the acquired image parameters are 200 x 200px and the image display window parameters are 500 x 300px, and correspondingly, the acquired 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 enlargement ratio is calculated according to the formula shown above:
Figure 951651DEST_PATH_IMAGE005
the resulting image has a pixel width magnification of 2.5.
Calculating the image pixel height magnification ratio according to the formula shown above:
Figure 173685DEST_PATH_IMAGE006
the resulting image pixel height magnification ratio is 1.5.
After the image pixel width amplification ratio and the image pixel height amplification ratio are obtained, the minimum value of the image pixel width amplification ratio and the image pixel height amplification ratio is used as the image pixel amplification ratio. This is because it is necessary to avoid that the image size exceeds the image display window boundary 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 the present embodiment, it can be found from the above-obtained image pixel width enlargement ratio of 2.5 and image pixel height enlargement ratio of 1.5 that the image pixel enlargement ratio of the present embodiment is 1.5.
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 and the window width distance are used for multiplying the image width by the image pixel amplification ratio to obtain the amplified image width, the window width is used for subtracting the amplified image width to obtain the spare width value of the image in the image display window, and the value is divided by 2 to obtain the width centering offset.
The purpose of the above steps is to center the magnified image in the image display window. The practical meaning of the centering offset is the distance that the image moves in the width direction and the height direction in the image display window based on the origin. In the embodiment of the application, the origin is set as the upper left corner coordinate point of the image display window. It should be noted that the origin may be located at another position, and the relative coordinates of the origin after being changed may be introduced into the subsequent calculation process when the centering offset is calculated subsequently.
Specifically, according to the image width, the image display window width and the image pixel amplification ratio, calculating to obtain a width centering offset;
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 Represents the width centering offset, W i Representing the width of an image display window, W j Representing image width, P w Representing the image pixel width enlargement ratio, P h Representing the image pixel height magnification scale.
The height centering offset is calculated by:
Figure 614210DEST_PATH_IMAGE004
wherein L is h Represents the width centering offset, H i Representing the width of the image display window, H j Representing image width, P w Representing the image pixel width enlargement ratio, P h Representing the image pixel height magnification scale.
In the present 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 obtained width centering offset is 100px, and the height centering offset is 0px.
Further, the corrected image mark is obtained through calculation according to the centering offset and the image pixel magnification ratio.
The corrected image mark includes a plurality of corrected coordinate points. The correction coordinates of the plurality of corrected coordinate points are obtained through calculation according to the centering offset and the image magnification ratio;
and determining the corrected image mark according to the correction coordinates.
Specifically, after the centering offset is calculated, original coordinate point data in the image mark is obtained, wherein the original coordinate point data comprises an abscissa of an original coordinate point and an ordinate of the original coordinate point. Then, according to the width centering offset, the image pixel amplification ratio and the abscissa of the original coordinate point, calculating to obtain the corrected abscissa of the coordinate point;
and calculating to obtain the 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 corrected abscissa is calculated by the following formula:
Figure 885289DEST_PATH_IMAGE009
wherein R is w Representing the corrected abscissa, L w Represents the width centering offset, x represents the abscissa of the original coordinate point, F represents the bezel width,
Figure 638350DEST_PATH_IMAGE010
representing the magnification of the image pixels.
The corrected ordinate is calculated by the following formula:
Figure 940018DEST_PATH_IMAGE011
wherein R is h Representing the corrected ordinate, L h Representing the height centering offset, y representing the ordinate of the original coordinate point, F representing the bezel width,
Figure 300593DEST_PATH_IMAGE010
representing the magnification of the image pixels.
It should be noted that the frame width mentioned in the above formula is set manually, in this embodiment, is a fixed value of 20px, and the frame needs to be subtracted automatically 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, one of the coordinate points in the plantar pressure image mark is taken as an example, and the coordinates of the original coordinate point are (50, 100).
From the above data, the correction abscissa is calculated by:
Figure 687712DEST_PATH_IMAGE012
the calculation process of the correction ordinate is as follows:
Figure 57513DEST_PATH_IMAGE013
thus, the final calculated corrected coordinates are (145,120). In this embodiment, the plantar pressure plate finally returns 19 coordinates, the 19 original coordinates are consistent as in the above steps, the rest corrected coordinates are calculated, and the corrected image mark is determined according to the corrected coordinates.
Referring to fig. 2, an image marking schematic diagram with an image magnification of 1 in the embodiment of the present application is shown. Referring to fig. 3, an image marking diagram with a centering offset of 0 according to an embodiment of the present application is shown. Referring to fig. 4, a schematic diagram of image marks when the frame width is not subtracted in the embodiment of the present application is shown. Referring to fig. 5, a schematic diagram of a corrected image marker according to an embodiment of the present application is shown.
As can be seen from fig. 2-5, the matching degree of the corrected image mark and the image is greatly improved compared with that of the corrected image mark and the image is substantially positioned in the center of the image display window, so that the image is convenient to view.
According to the embodiment, according to the image mark correction method, the image pixel amplification 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 proportion; and calculating according to the centering offset and the image pixel magnification ratio to obtain a corrected image mark. The method effectively ensures that the image mark corresponds to the adjusted image under the condition that the image is displayed to the greatest extent, and reduces the display error between the image mark and the image on the basis of effectively reducing the correction difficulty and the complexity of the scheme.
It should be noted that, the method of the embodiments of the present application may be performed by a single device, for example, a computer or a server. The method of the embodiment can also be applied to a distributed scene, and is completed by mutually matching a plurality of devices. In the case of such a distributed scenario, one of the devices may perform only one or more steps of the methods of embodiments of the present application, and the devices may interact with each other to complete the methods.
It should be noted that some embodiments of the present application are described above. 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 are also possible or may be advantageous.
Based on the same inventive concept, the application also provides an electronic device corresponding to the method of any embodiment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the image mark correction method of any embodiment when executing the program.
Fig. 6 shows a more specific hardware architecture 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 processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 implement communication connections therebetween within the device via a bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit ), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing relevant programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. Memory 1020 may store an operating system and other application programs, and when the embodiments of the present specification are implemented in software or firmware, the associated program code is stored in memory 1020 and executed by processor 1010.
The input/output interface 1030 is used to connect with an input/output module for inputting and outputting information. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
Communication interface 1040 is used to connect communication modules (not shown) to enable communication interactions of the present device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 1050 includes a path for transferring information between components of the device (e.g., processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
It should be noted that although the above-described device only shows processor 1010, memory 1020, input/output interface 1030, communication interface 1040, and bus 1050, in an implementation, the device may include other components necessary to achieve proper operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
The electronic device of the foregoing embodiment is configured to implement the corresponding image marking correction method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, corresponding to any of the above embodiments of the method, the present application further provides a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the image marking correction method according to any of the above embodiments.
The computer readable media of the present embodiments, including both permanent and non-permanent, removable and non-removable media, may be used to 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 storage media for a computer 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, which can be used to store information that can be accessed by a computing device.
The storage medium of the foregoing embodiments stores computer instructions for causing the computer to execute the image marking correction method according to any one of the foregoing embodiments, and has the advantages of the corresponding method embodiments, which are not described herein.
Those of ordinary skill in the art will appreciate that: the discussion of any of the embodiments above is merely exemplary and is not intended to suggest that the scope of the application (including the claims) is limited to these examples; the technical features of the above embodiments or in the different embodiments may also be combined within the idea of the present application, the 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.
Additionally, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures, in order to simplify the illustration and discussion, and so as not to obscure the embodiments of the present application. Furthermore, the devices may be shown in block diagram form in order to avoid obscuring the embodiments of the present 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 on which the embodiments of the present application are to be implemented (i.e., such 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 embodiments of the application can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative in nature and not as restrictive.
While the present application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of those embodiments will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
The present embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Accordingly, any omissions, modifications, equivalents, improvements and/or the like which are within the spirit and principles of the embodiments are intended to be included within the scope of the present application.

Claims (7)

1. A method of image mark correction comprising:
calculating to obtain an image pixel amplification ratio according to the acquired image parameters and the acquired image display window parameters; wherein the image parameters include an image width and an image height; the image display window parameters comprise an image display window width and an image display window height;
calculating to obtain a centering offset according to the image pixel amplification proportion; wherein the centering offsets include a width centering offset and a height centering offset;
calculating according to the centering offset and the image pixel amplification ratio to obtain a corrected image mark;
the image pixel amplification ratio is calculated according to the acquired image parameters and the acquired image display window parameters, 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 an image pixel height amplification ratio according to the image height and the image display window height;
taking the minimum value of the image pixel width amplification ratio and the image pixel height amplification ratio as the image pixel amplification ratio;
the width centering offset is calculated by:
Figure QLYQS_1
wherein L is w Represents the width centering offset, W i Representing the width of an image display window, W j Representing image width, P w Representing the image pixel width enlargement ratio, P h Representing the image pixel height magnification ratio;
the height centering offset is calculated by:
Figure QLYQS_2
wherein L is h Represents the width centering offset, H i Representing the width of the image display window, H j Representing image width, P w Representing the image pixel width enlargement ratio, P h Representing the image pixel height magnification scale.
2. The method of claim 1, wherein the image pixel width magnification ratio is calculated by:
Figure QLYQS_3
wherein P is w Representing the image pixel width enlargement ratio, W i Representing the width of an image display window, W j Representing the image width.
3. The method of claim 1, wherein the image pixel height magnification ratio is calculated by:
Figure QLYQS_4
wherein P is h Representing the image pixel height magnification ratio, H i Representing the height of the image display window, H j Representing the image height.
4. The method of claim 1, wherein said calculating a centering offset based on said image pixel magnification ratio comprises:
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.
5. The method of claim 1, wherein the corrected image marker comprises a plurality of corrected coordinate points;
the image mark corrected according to the centering offset and the image pixel amplification ratio comprises the following steps:
calculating to obtain corrected coordinates of the plurality of corrected coordinate points according to the centering offset and the image magnification ratio;
and determining the corrected image mark according to the correction coordinates.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 5 when the program is executed by the processor.
7. 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 5.
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 CN115797198A (en) 2023-03-14
CN115797198B true 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)

Families Citing this family (2)

* 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
CN116661663B (en) * 2023-08-02 2023-12-05 北京华益精点生物技术有限公司 Foot type display method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011015928A2 (en) * 2009-08-04 2011-02-10 Vesalis Image-processing method for correcting a target image in accordance with a reference image, and corresponding image-processing device
US8917336B2 (en) * 2012-05-31 2014-12-23 Apple Inc. Image signal processing involving geometric distortion correction
JP6213558B2 (en) * 2013-02-28 2017-10-18 日本電気株式会社 Image processing method and image processing apparatus
US10529053B2 (en) * 2016-12-02 2020-01-07 Apple Inc. Adaptive pixel uniformity compensation for display panels
GB2585540B (en) * 2018-02-21 2022-04-27 Ev Offshore Ltd Image correction methods for downhole inspection tools

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN115797198A (en) 2023-03-14

Similar Documents

Publication Publication Date Title
CN115797198B (en) Image mark correction method and related equipment
CN111815755A (en) Method and device for determining shielded area of virtual object and terminal equipment
CN101295402A (en) Information processing apparatus and information processing method
US10909724B2 (en) Method, apparatus, and computer readable medium for adjusting color annotation of an image
CN111443974A (en) Android device screen adapting method, related device and readable storage medium
CN110458954B (en) Contour line generation method, device and equipment
WO2021129345A1 (en) Scene map building method, device, and storage medium
US10510163B2 (en) Image processing apparatus and image processing method
CN114445499A (en) Checkerboard angular point automatic extraction method, system, equipment and medium
CN116977671A (en) Target tracking method, device, equipment and storage medium based on image space positioning
CN110956131A (en) Single-target tracking method, device and system
US11847184B2 (en) Two-way descriptor matching on deep learning accelerator
CN115272473A (en) Camera calibration method and device, electronic equipment and storage medium
CN114975212A (en) Wafer center positioning method, device, equipment and medium
CN103729844B (en) Motionlessness detecting method and device
CN111914741A (en) House property certificate identification method, device and equipment
CN116661663B (en) Foot type display method and related equipment
CN116563357B (en) Image matching method, device, computer equipment and computer readable storage medium
US11669234B2 (en) Method for processing aerial view, electronic device, and storage medium
CN115456892B (en) 2.5-dimensional visual image automatic geometric correction method, device, equipment and medium
CN114897997B (en) Camera calibration method, device, equipment and storage medium
CN116071564A (en) Texture feature extraction method and related equipment
CN110928542B (en) Webpage adaptation method, device, system and equipment
CN114972262A (en) Depth image calculation method, device, equipment and medium
CN117994298A (en) Image registration processing 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