CN102419762A - Method for loading scales for batches of metallographic digital photos - Google Patents

Method for loading scales for batches of metallographic digital photos Download PDF

Info

Publication number
CN102419762A
CN102419762A CN2011102989081A CN201110298908A CN102419762A CN 102419762 A CN102419762 A CN 102419762A CN 2011102989081 A CN2011102989081 A CN 2011102989081A CN 201110298908 A CN201110298908 A CN 201110298908A CN 102419762 A CN102419762 A CN 102419762A
Authority
CN
China
Prior art keywords
file
metallograph
array
scale
metallographic
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.)
Pending
Application number
CN2011102989081A
Other languages
Chinese (zh)
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.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Hebei Electric Power Co Ltd
Hebei Electric Power Construction Adjustment Test Institute
Original Assignee
Hebei Electric Power Construction Adjustment Test Institute
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 Hebei Electric Power Construction Adjustment Test Institute filed Critical Hebei Electric Power Construction Adjustment Test Institute
Priority to CN2011102989081A priority Critical patent/CN102419762A/en
Publication of CN102419762A publication Critical patent/CN102419762A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses a method for loading scales for batches of metallographic digital photos. The method comprises the following steps of: firstly, storing all metallographic photo file names under a certain folder into a file name block; secondly, automatically searching corresponding scale image files by matching the corresponding metallographic photo file names and corresponding amplification factors, and automatically reading pixel data of the metallographic photo file names into a memory; and finally, replacing the pixel data on the right lower corners of the metallographic photos with corresponding scale pixel data, and automatically storing the modified metallographic photo files. The method is simple and high in loading speed; scale loading for batches of metallographic photos can be realized; furthermore, the consistency of positions where the scales are loaded can be guaranteed and error operation caused by manual loading can be avoided; therefore, the method has a great significance for standardized construction and improvement of unit production efficiency.

Description

The batch processing of metallographic digital photograph loads the method for scale
Technical field
The present invention relates to the method that a kind of metallographic digital photograph batch processing loads scale.
Background technology
The development of Along with computer technology; The metal material microstructure picture from before the development sensitive paper developed into the electronic digital photo; Add the standardization requirement of metallograph, must load scale under the corresponding enlargement ratio, reached quantitative contrast the microstructure size to every metallographic digital photograph.
The Olympus inversion type metaloscope (model PMG3-613U type) that Japan produces, simple to operate, take quick, imaging is clear, possess multiplying power 50 *, 100 *, 200 * with 500 * enlarged and displayed.But the metallographic camera system (resolution 1024*768) that carries does not possess corresponding scale value-added tax function.Existing common practices copies scale through other image processing softwares, metallograph is loaded again, and this method is complicated, consuming time, be prone to make mistakes.
Summary of the invention
The technical matters that the present invention will solve provide a kind of can be fast, metallographic digital photograph batch processing accurately, easily loads the method for scale.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is:
A kind of metallograph batch processing loads the method for scale, and it carries out according to following step:
Step 1, take metallograph and with the format of JPEG in file, comprise the enlargement ratio of metallograph in the file name of said metallograph;
File described in step 2, the traversal step one when file type is JPEG, deposits it in filename array in, and said filename array type is a character string type variable array;
Step 3, the file name of metallograph in the filename array is mated; When containing enlargement ratio in the file name; The pixel data of the scale image file of corresponding multiplying power is read in the scale file array, and said scale number of files set type is grown shaping variable array for no symbol;
Step 4, the pixel data of metallograph corresponding in the filename array is deposited in the metallograph file array; And replace with the pixel data of the scale image file in the step 3 pixel data with said metallograph file array right-of-center in political views inferior horn, store in the file described in the step 1 after before the file name of former metallograph, increasing character; Said metallograph file array is the long shaping variable of no symbol array.
The present invention through extract the scale image file (for example: 50 *, 100 *, 200 * with 500 *) in the scale pixel data, write in the corresponding text with binary format.When the metallographic digital photograph is loaded scale; Through corresponding metallograph filename characteristic, seek corresponding scale text automatically, and be read into calculator memory automatically; At last the pixel data in the metallograph is replaced with corresponding scale pixel data, and preserve automatically.
The beneficial effect that adopts technique scheme to produce is:
(1) method provided by the invention is simple, loading velocity is fast; Such as to 800 metallographs, artificially load about 150 minutes of scale time, and use this method processing time less than 2.5 minutes; Its economic benefit and social benefit are obvious, can realize that the batch processing of a large amount of metallographs loads scale;
(2) consistance that Ben Fa can bright assurance scale loading position can avoid artificial the loading maloperation to occur and handle again, for the standardization construction with improve production of units efficient and brought into play vital role.
Description of drawings
Fig. 1 is the process flow diagram that the present invention loads scale;
Fig. 2 does not add scale photo before among the embodiment;
Fig. 3 has added scale photo afterwards among the embodiment.
Embodiment
The metallographic camera system (resolution 1024*768) that the Olympus inversion type metaloscope (model PMG3-613U type) that present embodiment is produced with Japan carries is an example, explains how the present invention realizes the automatic value-added tax function of metallographic digital photograph scale.
Referring to Fig. 1, carry out according to following step:
(1) takes metallograph and store in the file, comprise the enlargement ratio of said metallograph in the files stored title with jpeg format.Generally 50 times of enlargement ratios, 100 times of enlargement ratios, 200 times of enlargement ratios and 500 times of enlargement ratios being carried out in same metal position takes pictures; Get the corresponding file name respectively and be called " certain power plant-certain parts-50 ", " certain power plant-certain parts-100 ", " certain power plant-certain parts-200 " or " certain power plant-certain parts-500 ", digital corresponding enlargement ratio wherein.
(2) file described in the traversal step (1) when file type is JPEG, deposits its file name in the filename array in, and said filename array type is the character string type array.
(3) judge that whether the filename array is empty, when the filename array is not empty, gets into step (4), otherwise gets into step (7);
(4) file name of metallograph in the file name array is mated; When contain in the file name expression enlargement ratio digital the time; The pixel data of the scale image file of corresponding multiplying power is read in the scale file array, and said scale number of files set type is grown shaping variable array for no symbol.Contain 100 in the file name such as matching, then the pixel data (16 system) with the scale of 100 multiplying powers of storage under the c of the system dish reads in the scale file array.
The image of scale is to be made up of pixel, and each pixel is made up of 3 16 system data, and 3 16 systems make up and form the pixel (show be white, the grey of different depth and black) of various colors here.
The resolution of the captured metallograph of microscope is 1024*768 (being exactly 1024 * 768 pixels) in the present embodiment, and the resolution of scale file photo is 250*69.
(5) pixel data with the metallograph that traverses in the filename array deposits in the metallograph file array; And replace with the pixel data of the scale image file in the step (4) pixel data with the lower right corner in the above-mentioned metallograph file integer array, store in the file described in the step (1) after before the file name of former metallograph, increasing character; Said metallograph number of files set type is the long shaping variable of no symbol array.
Before the file name of former metallograph, add zxf in the present embodiment, to show and not load of the difference of the gold of scale as photo files.
(6) judge that whether the file in the said filename array also has the not file name of coupling,, otherwise get into step (7) if having then get into step (4).
(7) finish.
The metallograph that does not add scale is seen Fig. 2, and the photo behind the loading scale is seen Fig. 3.
Adopt the method for present embodiment to handle metallograph in the A level maintenance that certain 600MW of power plant unit carries out in February, 2011; Its pipe cutting metal lographic examination quantity is: 10 elbows, 5 straight tubes; It is individual to amount to metallographic specimen 50 (10 * 4+5 * 2); The back-fire side of each sample with warm oneself in front of a fire side each according to one group of metallograph, every group of photo contain 4 kinds of multiplying powers (50 *, 100 *, 200 * with 500 *) each two, amount to 800 in photo.If adopt artificial about 150 minutes of the scale time spent of loading, and use the method for this present embodiment, the processing time, its economic benefit and social benefit were obvious less than 2.5 minutes.

Claims (1)

1. a metallograph batch processing loads the method for scale, it is characterized in that carrying out according to following step:
Step 1, take metallograph and with the format of JPEG in file, comprise the enlargement ratio of metallograph in the file name of said metallograph;
File described in step 2, the traversal step one when file type is JPEG, deposits it in filename array in, and said filename array type is a character string type variable array;
Step 3, the file name of metallograph in the filename array is mated; When containing enlargement ratio in the file name; The pixel data of the scale image file of corresponding multiplying power is read in the scale file array, and said scale number of files set type is grown shaping variable array for no symbol;
Step 4, the pixel data of metallograph corresponding in the filename array is deposited in the metallograph file array; And replace with the pixel data of the scale image file in the step 3 pixel data with said metallograph file array right-of-center in political views inferior horn, store in the file described in the step 1 after before the file name of former metallograph, increasing character; Said metallograph file array is the long shaping variable of no symbol array.
CN2011102989081A 2011-09-29 2011-09-29 Method for loading scales for batches of metallographic digital photos Pending CN102419762A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102989081A CN102419762A (en) 2011-09-29 2011-09-29 Method for loading scales for batches of metallographic digital photos

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102989081A CN102419762A (en) 2011-09-29 2011-09-29 Method for loading scales for batches of metallographic digital photos

Publications (1)

Publication Number Publication Date
CN102419762A true CN102419762A (en) 2012-04-18

Family

ID=45944175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102989081A Pending CN102419762A (en) 2011-09-29 2011-09-29 Method for loading scales for batches of metallographic digital photos

Country Status (1)

Country Link
CN (1) CN102419762A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279480A (en) * 2013-07-11 2013-09-04 中原特钢股份有限公司 Batched field-of-view cropping and ruler adding method for metallographic digital photographs by using Photoshop software
CN103428436A (en) * 2012-05-23 2013-12-04 杭州美盛红外光电技术有限公司 Image recording device and image recording method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1262953C (en) * 2000-08-31 2006-07-05 索尼公司 Information processing equipment and method and program storing medium
CN1825158A (en) * 2005-02-25 2006-08-30 宝钢集团上海梅山有限公司 Digital metallurgical microscopic image enlarging multiplying power calibrating method
CN102110112A (en) * 2009-12-28 2011-06-29 新奥特(北京)视频技术有限公司 Image sequence batch processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1262953C (en) * 2000-08-31 2006-07-05 索尼公司 Information processing equipment and method and program storing medium
CN1825158A (en) * 2005-02-25 2006-08-30 宝钢集团上海梅山有限公司 Digital metallurgical microscopic image enlarging multiplying power calibrating method
CN102110112A (en) * 2009-12-28 2011-06-29 新奥特(北京)视频技术有限公司 Image sequence batch processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428436A (en) * 2012-05-23 2013-12-04 杭州美盛红外光电技术有限公司 Image recording device and image recording method
CN103279480A (en) * 2013-07-11 2013-09-04 中原特钢股份有限公司 Batched field-of-view cropping and ruler adding method for metallographic digital photographs by using Photoshop software

Similar Documents

Publication Publication Date Title
US11023666B2 (en) Narrative-based media organizing system for transforming and merging graphical representations of digital media within a work area
US10031906B2 (en) Images and additional data associated with cells in spreadsheets
Sutton et al. SPIERS and VAXML: a software toolkit for tomographic visualisation and a format for virtual specimen interchange
CN102414721B (en) There is the data file of more than one operator scheme
CN103595791A (en) Cloud accessing method for mass remote sensing data
US20200065361A1 (en) Selectively controlling modification states for user-defined subsets of objects within a digital document
CN102419762A (en) Method for loading scales for batches of metallographic digital photos
CN102902694A (en) Picture checking method and device
Adorjan Opensfm: A collaborative structure-from-motion system
Pomaska Utilization of photosynth point clouds for 3D object reconstruction
CN105183737A (en) Industrial Design instant searching system and searching method thereof
Jocks et al. An investigation to examine the most appropriate methodology to capture historical and modern preserved anatomical specimens for use in the digital age to improve access: a pilot study
Decker et al. VIRMISCO–the virtual microscope slide collection
CN103632386B (en) The manufacture method of unearthed letter silks copy based on Digital Image Processing
Patil et al. Evaluation and comparison between smartphone and photomicrography based whole slide imaging
US20190130623A1 (en) System and method for electronic greeting cards
JP2022546614A (en) image souvenir generation
CN113222905B (en) Opennsfm and thread.js-based structural damage information updating three-dimensional display method
CN104615739B (en) The quick archiving method of data suitable for three-dimensional brain tissue high-resolution magnanimity atlas
Çayırezmez et al. The British Institute at Ankara’s digital repository: Botanical Reference Collections digitisation Project
Maschner et al. The Virtual Repository of Arctic Archaeology and the Democratization of Science
Wells et al. Re-Imagining Animation: Contemporary Moving Image Cultures (Advanced Level)
Koski Automated map generation process for tiled raster maps
Douglas et al. Interactive Visualization of Media Collections for Humanities Research
Holley THE AUSTRALIAN NEWSPAPERS DIGITISATION PROGRAM: Helping communities access and explore their newspaper heritage

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: STATE GRID CORPORATION OF CHINA HEBEI ELECTRIC POW

Effective date: 20130105

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 050011 SHIJIAZHUANG, HEBEI PROVINCE TO: 050091 SHIJIAZHUANG, HEBEI PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20130105

Address after: 050091 Hebei high tech District of Shijiazhuang City Xinshi North Road, No. 86

Applicant after: Hebei Electric Power Construction & Adjustment Research Institute

Applicant after: State Grid Corporation of China

Applicant after: Electric Power Research Institute of Hebei Electric Power Corporation

Address before: 050011 Hebei city of Shijiazhuang Province Sports No. 238 South Street

Applicant before: Hebei Electric Power Construction & Adjustment Research Institute

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120418