CN102034228A - Ancient book image inpainting method and device - Google Patents

Ancient book image inpainting method and device Download PDF

Info

Publication number
CN102034228A
CN102034228A CN2010105851384A CN201010585138A CN102034228A CN 102034228 A CN102034228 A CN 102034228A CN 2010105851384 A CN2010105851384 A CN 2010105851384A CN 201010585138 A CN201010585138 A CN 201010585138A CN 102034228 A CN102034228 A CN 102034228A
Authority
CN
China
Prior art keywords
image
hole
bookbinding
document
image block
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
CN2010105851384A
Other languages
Chinese (zh)
Other versions
CN102034228B (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 HANVON DIGITAL TECHNOLOGY CO., LTD.
Original Assignee
Hanwang Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hanwang Technology Co Ltd filed Critical Hanwang Technology Co Ltd
Priority to CN2010105851384A priority Critical patent/CN102034228B/en
Publication of CN102034228A publication Critical patent/CN102034228A/en
Application granted granted Critical
Publication of CN102034228B publication Critical patent/CN102034228B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses an ancient book image inpainting method and an ancient book image inpainting device and belongs to the field of image processing. The method comprises the following steps of: calibrating each binding hole in images of a document template page; positioning binding holes of the other images in a document according to the position of each binding hole in the images of the document template page, and selecting from image blocks adjacent to the calibrated area of each binding hole in the document; and filling the selected image block to the image area of each binding hole. A large amount of labour and time are saved by positioning the binding holes of the ancient book document page and massively selecting the image blocks around each binding hole and the image inpainting effect and the image inpainting performance are improved, so that the method and the device are of important significance and application value to the post processing and image application of various application system.

Description

Ancient books image repair method and device
Technical field
The invention belongs to image processing field, relate to a kind of ancient books image repair method and device.
 
Background technology
Ancient books has high academic research and value of art appreciation as the important component part of human culture legacy.Because it is rare, rare, the above-mentioned value of ancient books can't be on a large scale for the public utilizes, even in strict restricted portion, the security of ancient books original paper and sustainable keeping quality still are difficult to ensure.Excavation and effective utilization to literature of ancient book have become one of main target of various countries digital library (Digital Library) engineering.Handle by electronization, both be beneficial to, help numerous scholars it is studied ancient books preservation originally to ancient books.
Because the ancient books document is usually damaged imperfect, particularly the bookbinding hole at gutter pos place usually needs to repair.Common restorative procedure is for manually handling, and chooses in the document and the most similar image block of bookbinding hole ambient color by Flame Image Process instruments such as PhotoShop, affixes to the bookbinding hole site again.Because the page binding hole number of ancient books document is very big, then needs a large amount of manually-operateds, not only expend great amount of manpower and time, and the manually-operated error is bigger, the image repair effect can't be satisfactory.
 
Summary of the invention
Technical matters to be solved by this invention provides a kind of ancient books image repair method and device, position by bookbinding hole the page of ancient books document, select respectively to bind hole image block on every side in batches and screen the back filling, save great amount of manpower and time, improved the performance of image repair.
The invention discloses a kind of ancient books image repair method, comprise the steps:
Step 1: demarcate and respectively to bind the hole in the document template page or leaf image;
Step 2: according to respectively binding the bookbinding hole in other pages image in the location positioning document of demarcating in the hole in the masterplate page or leaf image, with document in respectively bind in the regional adjacent image block of demarcating in the hole and screen;
Step 3: the image block that screening is obtained is filled to the image-region that each binds the place, hole.
Respectively bind image-region adjacent eight rectangular neighborhoods of hole image block on every side for bookbinding place, hole in the described step 2, the length of side of each rectangular neighborhood is associated with the image-region at bookbinding place, hole.
Respectively bind when screening in the image block around the hole image block that the image block of pixel value variance minimum in the image block around each bookbinding hole is obtained as screening in the described step 2.
When being filled to the image-region at bookbinding place, hole in the described step 3, screening image block that obtains and the image-region of binding the place, hole are carried out boundary treatment.
Described boundary treatment is handled for sprouting wings.
The invention also discloses a kind of ancient books image fixing apparatus, comprise as lower module:
Demarcating module is demarcated and respectively to be bound the hole in the document template page or leaf image;
The screening module, according to respectively binding the bookbinding hole in other pages image in the location positioning document of demarcating in the hole in the masterplate page or leaf image, with document in respectively bind in the regional adjacent image block of demarcating in the hole and screen;
Packing module, the image block that screening is obtained is filled to the image-region that each binds the place, hole.
A kind of ancient books image repair method of the present invention and device, its advantage is: position by the bookbinding hole to the page of ancient books document, select respectively to bind hole image block on every side in batches and screen the back filling, great amount of manpower and time have been saved, improved the effect and the performance of image repair, be of great significance and value for the subsequent treatment and the image applications of various application systems.
 
Description of drawings
Fig. 1 is the process flow diagram of ancient books image repair method of the present invention.
Fig. 2 is a bookbinding hole synoptic diagram of demarcating document template page or leaf image in the ancient books image repair method of the present invention;
Fig. 3 is the synoptic diagram of image block around the bookbinding hole of ancient books image repair method of the present invention;
Fig. 4 a is the synoptic diagram of bookbinding place, hole image-region before filling in the ancient books image repair method of the present invention;
Fig. 4 b is the synoptic diagram of filling bookbinding place, hole, back image-region in the ancient books image repair method of the present invention.
 
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
The invention discloses a kind of ancient books image repair method, as shown in Figure 1, comprise the steps:
Step 1: demarcate and respectively to bind the hole in the document template page or leaf image;
Ancient books text to papery scans, and obtains the electronic document of ancient books text, contains the bookbinding hole that stays when disassembling the ancient books text of papery in each image in the electronic document.In the present embodiment, contain six bookbinding holes in every page of image, choose and include the optional position of binding the hole, manually the bookbinding hole in the masterplate page or leaf image of document is demarcated, in the present embodiment, the masterplate page or leaf of document is the homepage of document, demarcates and respectively binds the position of hole in document front figure picture.
In the present embodiment, as shown in Figure 2, the position at the place, bookbinding hole in the front figure picture is contained the rectangle of binding the hole with one and is demarcated, with upper left corner coordinate, the width of rectangle with highly represent to bind the hole.Error when binding the hole in order to reduce to demarcate writes down the wide of books and height simultaneously, when handling big image in different resolution, binds the near image border of Kongzui according to the wide of books and height location like this apart from each, and the nearest bookbinding hole of location and image border.The upper left corner of image is with (0,0) expression, the coordinate in the upper left corner of respectively binding the hole in the image for (x, y), width is w, highly is h.
Step 2: according to respectively binding the bookbinding hole in other pages image in the location positioning document of demarcating in the hole in the masterplate page or leaf image, with document in respectively bind in the regional adjacent image block of demarcating in the hole and screen;
Because other pages image is bound in the masterplate page or leaf image of document and the document, so the relative position of bookbinding hole and page area remains unchanged in each page of ancient books text, so can be according to the position in the bookbinding hole in other pages image in the location positioning document of respectively binding the hole in the masterplate page or leaf image.
Image-region to each bookbinding place, hole carries out graphical analysis respectively.As shown in Figure 3, screen in the image block around the bookbinding hole, each image block of binding around the hole is eight adjacent rectangular neighborhoods of image-region at bookbinding place, hole, and the length of side of each rectangular neighborhood is associated with the image-region at bookbinding place, hole.In the present embodiment, the image-region at bookbinding place, hole comprises the external quadrilateral in this bookbinding hole, eight rectangular neighborhoods of the image-region at this place, bookbinding hole are followed successively by neighborhood 1 to the length of side of 8, eight rectangular neighborhoods of neighborhood and are associated with the length of side of the image-region at bookbinding place, hole respectively.
When in each bookbinding image block around hole, screening, respectively neighborhood 1 to neighborhood 8 screen successively, choose in each neighborhood textural characteristics with the textural characteristics of the image-region at bookbinding place, hole nearest like neighborhood.In the present embodiment, because the zone of the variance minimum of pixel value is the most smooth zone in eight rectangular neighborhoods on image-region four limits at bookbinding place, hole, so the minimum method of employing variance is screened the textural characteristics of each rectangular neighborhood, get the variance of pixel value in each rectangular neighborhood of each calculated for pixel values in eight rectangular neighborhoods respectively, the image block that the rectangular neighborhood of the variance minimum of pixel value in eight rectangular neighborhoods is obtained as screening.
Step 3: the image block that screening is obtained is filled to the image-region that each binds the place, hole.
The image block of choosing after the screening is filled the image-region at bookbinding place, hole, and boundary treatment is carried out on the border of the image-region at bookbinding place, hole and the border of the image block after the screening, and described boundary treatment is handled for sprouting wings.
To the processing of sprouting wings between the border of the image-region at bookbinding place, hole and the border of image block after the screening, eliminated the vestige on border between the image-region at bookbinding hole place and the image block after the screening, played the effect of gradual change, the image-region at bookbinding place, hole and the image block after the screening are connected naturally, the image-region that has guaranteed to bind the hole place with screen after the textural characteristics of image block identical.In the present embodiment, screening image block that obtains and the image-region of binding the place, hole are merged by integration percentage P, each pixel in the image block that the statistics screening obtains and the distance D on its border, then
Fill the pixel value of the image-region at bookbinding place, hole before pixel value=fillings of image-region at bookbinding place, hole, back * (1-P)+the screen pixel value * P of the image block that obtains
Wherein, the variation of the image block frontier distance that obtains of each pixel in the image block that obtains with screening of integration percentage P and screening changes.As D 〉=10 the time, integration percentage P is 100%; When D<=9, integration percentage P is (D * 10) %.Merge the image-region that obtains filling bookbinding place, hole, back afterwards by integration percentage
Shown in Fig. 4 a, Fig. 4 b, Fig. 4 b is filled to the picture behind the image-region of binding the place, hole for the image block that screening is obtained, and as can be seen from the figure, repair with being flattened in the bookbinding hole.
Because each bookbinding hole relative position in each page of document is fixed, after then the bookbinding hole in the masterplate page or leaf image of document is demarcated and is finished, other page-images that can repair document successively according to the bookbinding relative position of hole in masterplate page or leaf image, thus whole ancient books repaired.
The invention also discloses a kind of ancient books image fixing apparatus, comprise as lower module:
Demarcating module is demarcated and respectively to be bound the hole in the document template page or leaf image;
The screening module, according to respectively binding the bookbinding hole in other pages image in the location positioning document of demarcating in the hole in the masterplate page or leaf image, with document in respectively bind in the regional adjacent image block of demarcating in the hole and screen;
Packing module, the image block that screening is obtained is filled to the image-region that each binds the place, hole.
A kind of ancient books image repair method of the present invention and device, position by bookbinding hole the page of ancient books document, select respectively to bind hole image block on every side in batches and screen the back filling, great amount of manpower and time have been saved, improved the effect and the performance of image repair, be of great significance and value for the subsequent treatment and the image applications of various application systems.

Claims (6)

1. an ancient books image repair method is characterized in that, comprises the steps:
Step 1: demarcate and respectively to bind the hole in the document template page or leaf image;
Step 2: according to respectively binding the bookbinding hole in other pages image in the location positioning document of demarcating in the hole in the masterplate page or leaf image, with document in respectively bind in the regional adjacent image block of demarcating in the hole and screen;
Step 3: the image block that screening is obtained is filled to the image-region that each binds the place, hole.
2. method according to claim 1 is characterized in that: respectively bind image-region adjacent eight rectangular neighborhoods of hole image block on every side for bookbinding place, hole in the described step 2, the length of side of each rectangular neighborhood is associated with the image-region at bookbinding place, hole.
3. method according to claim 2 is characterized in that: when in each bookbinding image block around hole, screening in the described step 2, and the image block that the image block of pixel value variance minimum in the image block around each bookbinding hole is obtained as screening.
4. method according to claim 1 is characterized in that: when being filled to the image-region at bookbinding place, hole in the described step 3, screening image block that obtains and the image-region of binding the place, hole are carried out boundary treatment.
5. method according to claim 4 is characterized in that: described boundary treatment is handled for sprouting wings.
6. an ancient books image fixing apparatus is characterized in that, comprises as lower module:
Demarcating module is demarcated and respectively to be bound the hole in the document template page or leaf image;
The screening module, according to respectively binding the bookbinding hole in other pages image in the location positioning document of demarcating in the hole in the masterplate page or leaf image, with document in respectively bind in the regional adjacent image block of demarcating in the hole and screen;
Packing module, the image block that screening is obtained is filled to the image-region that each binds the place, hole.
CN2010105851384A 2010-12-13 2010-12-13 Ancient book image inpainting method and device Active CN102034228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105851384A CN102034228B (en) 2010-12-13 2010-12-13 Ancient book image inpainting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105851384A CN102034228B (en) 2010-12-13 2010-12-13 Ancient book image inpainting method and device

Publications (2)

Publication Number Publication Date
CN102034228A true CN102034228A (en) 2011-04-27
CN102034228B CN102034228B (en) 2012-11-28

Family

ID=43887081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105851384A Active CN102034228B (en) 2010-12-13 2010-12-13 Ancient book image inpainting method and device

Country Status (1)

Country Link
CN (1) CN102034228B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102677544A (en) * 2012-05-17 2012-09-19 常州大学 Vacuum ancient book and paper document patching method
CN105139363A (en) * 2015-10-10 2015-12-09 上海中信信息发展股份有限公司 Document image binding hole automatic restoration method and system
CN105279510A (en) * 2015-10-10 2016-01-27 上海中信信息发展股份有限公司 Method and device for automatically positioning binding hole of document image
CN105469362A (en) * 2014-09-01 2016-04-06 山东新北洋信息技术股份有限公司 Image processing method and image processing device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658088A (en) * 2004-02-20 2005-08-24 夏普株式会社 Image forming apparatus
JP2006229858A (en) * 2005-02-21 2006-08-31 Canon Electronics Inc Image processor
JP2006244083A (en) * 2005-03-02 2006-09-14 Canon Electronics Inc Image processing apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658088A (en) * 2004-02-20 2005-08-24 夏普株式会社 Image forming apparatus
JP2006229858A (en) * 2005-02-21 2006-08-31 Canon Electronics Inc Image processor
JP2006244083A (en) * 2005-03-02 2006-09-14 Canon Electronics Inc Image processing apparatus

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102677544A (en) * 2012-05-17 2012-09-19 常州大学 Vacuum ancient book and paper document patching method
CN102677544B (en) * 2012-05-17 2014-04-30 常州大学 Vacuum repairing method for ancient book and paper document
CN105469362A (en) * 2014-09-01 2016-04-06 山东新北洋信息技术股份有限公司 Image processing method and image processing device
CN105469362B (en) * 2014-09-01 2018-09-18 山东新北洋信息技术股份有限公司 Image processing method and image processing apparatus
CN105139363A (en) * 2015-10-10 2015-12-09 上海中信信息发展股份有限公司 Document image binding hole automatic restoration method and system
CN105279510A (en) * 2015-10-10 2016-01-27 上海中信信息发展股份有限公司 Method and device for automatically positioning binding hole of document image
CN105139363B (en) * 2015-10-10 2018-02-27 上海中信信息发展股份有限公司 The self-repairing method and system of file and picture binding hole
CN105279510B (en) * 2015-10-10 2018-09-04 上海中信信息发展股份有限公司 The automatic positioning method and device of file and picture binding hole

Also Published As

Publication number Publication date
CN102034228B (en) 2012-11-28

Similar Documents

Publication Publication Date Title
Apollonio et al. A photogrammetry-based workflow for the accurate 3D construction and visualization of museums assets
Cook An evaluation of the effectiveness of low-cost UAVs and structure from motion for geomorphic change detection
CN103929604B (en) Projector array splicing display method
US6201546B1 (en) Systems and methods for generating three dimensional, textured models
CN102034228B (en) Ancient book image inpainting method and device
Cassen et al. Complementarity of acquisition techniques for the documentation of Neolithic engravings: lasergrammetric and photographic recording in Gavrinis passage tomb (Brittany, France)
US4970666A (en) Computerized video imaging system for creating a realistic depiction of a simulated object in an actual environment
Brady et al. Digital enhancement of deteriorated and superimposed pigment art: methods and case studies
CA2634494C (en) Methods and files for delivering imagery with embedded data
US9237320B2 (en) Method and device for generating a calibrated projection
Rivero et al. On the limits of 3D capture: A new method to approach the photogrammetric recording of palaeolithic thin incised engravings in Atxurra Cave (northern Spain)
Gunn et al. A method to visually rationalise superimposed pigment motifs
DE102015109560A1 (en) ASSIGNING PRIMITIVES TO TILES IN A GRAPHIC PROCESSING SYSTEM
CN108876705B (en) Image synthesis method and device and computer storage medium
CN101493893B (en) Image data fusing method
KR100995107B1 (en) Image editing system improving the understanding about the photoreconnaissance
US20090106000A1 (en) Geospatial modeling system using void filling and related methods
CN105118016A (en) Graphics and text information hiding method based on visual interference
CN107230250A (en) A kind of reference entity sample carries out the forming method of Direct Three-dimensional modeling
Spring et al. Developing a low cost 3D imaging solution for inscribed stone surface analysis
CN101739677B (en) SAR (synthetic aperture radar) ortho-image map elevating track fusing method
CN113920030B (en) Large-area high-fidelity satellite remote sensing image uniform color mosaic processing method and device
KR20160124072A (en) Three-dimensional map display system
CN103679798A (en) Digital reduction method for cave wall paintings
JP5946369B2 (en) 3D map image data generation system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: BEIJING HANVON DIGITAL TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: HANWANG TECH CO., LTD.

Effective date: 20150804

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150804

Address after: 100193, room 5, building 3, building 8, No. 303 northeast Wang Xi Road, Beijing, Haidian District

Patentee after: BEIJING HANVON DIGITAL TECHNOLOGY CO., LTD.

Address before: 100193 Beijing, Haidian District, northeast Wang West Road, building three, floor 5, layer 8

Patentee before: Hanwang Tech Co., Ltd.