CN103822581B - A kind of irregularly shaped object volume measuring method based on compressed sensing - Google Patents

A kind of irregularly shaped object volume measuring method based on compressed sensing Download PDF

Info

Publication number
CN103822581B
CN103822581B CN201410066892.5A CN201410066892A CN103822581B CN 103822581 B CN103822581 B CN 103822581B CN 201410066892 A CN201410066892 A CN 201410066892A CN 103822581 B CN103822581 B CN 103822581B
Authority
CN
China
Prior art keywords
view
irregularly shaped
shaped object
volume
compressed sensing
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
CN201410066892.5A
Other languages
Chinese (zh)
Other versions
CN103822581A (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.)
Shaanxi University of Science and Technology
Original Assignee
Shaanxi University of Science and Technology
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 Shaanxi University of Science and Technology filed Critical Shaanxi University of Science and Technology
Priority to CN201410066892.5A priority Critical patent/CN103822581B/en
Publication of CN103822581A publication Critical patent/CN103822581A/en
Application granted granted Critical
Publication of CN103822581B publication Critical patent/CN103822581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of irregularly shaped object volume measuring method based on compressed sensing, first, demarcates system, obtains the pixel equivalent of system;Secondly, utilize three photographic head to obtain object under test respectively to overlook, left view, the right original image regarding three directions, and the maximum peripheral lengths image coordinate parameter of object under test is obtained by top view, utilize simultaneously and overlook greatest length pixel count for according to the reconstruct scope corresponding to the view of segmentation left and right, respectively left view and right view are carried out three-dimensionalreconstruction by shape from shading method, it is randomly chosen the partial coordinates point that shape from shading method obtains, with partial coordinates point as measured value, select compression calculation matrix and sparse base, rebuild the original coordinates of left and right view, improve the accuracy of coordinate figure, the volume of left and right view restructuring object is calculated respectively under image coordinate, then sue for peace;Finally, calculating the actual volume of object under test in world coordinate system according to pixel equivalent, the present invention can realize the cubing of irregularly shaped object.

Description

A kind of irregularly shaped object volume measuring method based on compressed sensing
Technical field
The present invention relates to a kind of method utilizing digital image processing techniques to realize irregularly shaped object cubing, It is specifically related to a kind of irregularly shaped object volume measuring method based on compressed sensing.
Background technology
In real life and industrial circle, some irregular materials are had to need to measure its volume, such as industry Raw-material on-line detecting system.Along with the development of the technology of measurement, the measurement circumstance complication of irregularly shaped object Changeable, measuring method is the most constantly reformed.
Traditional measuring method is that people measures the geometry of rule objects with tape measure scene, although simple, Easy, but object of observation need to be arranged, manual site measures poor in timeliness, and precision is the highest, uncomfortable Close the measurement of large-sized object, it is also difficult to realize non-contact measurement.Existing based on computer vision measurement master If visually being felt by double (many) and irregularly shaped object being carried out three-dimensionalreconstruction, then calculate three-dimensionalreconstruction The volume of object.Double (many) mesh vision measurements are the object image information obtaining different angles, and multiple stage is taken the photograph Relative position between camera to be fixed accurately, and multiple cameras to be ensured is same shooting Step property and stability, control is difficult to, substantially can only realize the application of little scope, needs to find For the characteristic point of coupling between image, and Feature Points Matching is the difficult point in image procossing, hence with many It is complicated, computationally intensive that width image carries out the calculating operation of the volume after three-dimensional reconstruction, is not suitable for dynamic scene etc. Problem.There is not the coupling of image characteristic point in monocular vision measuring method, is to directly utilize in scene Know geometric properties, under the meaning of one affine transformation of difference, obtain the three dimensional structure of object, to equipment Require simple, it is not necessary to the coupling of multiple image, with low cost, it is easy to accomplish, saved the time, improve Efficiency, shape from shading method (SFS) method is the most frequently used monocular vision method, is according to objects in images table The light and shade change in face, the relative altitude of recovery body surface each point, but as it is assumed that the reconstruction of condition object Precision is the highest, and existing irregularly shaped object volume measuring method limits it to a certain extent in industry mistake Application in journey.
Utilizing compressed sensing (CS) that object carries out three-dimensional reconstruction is the portion obtained by shape from shading method Divided data carries out secondary recovery to object, improves the reconstruction precision of object, and the method can reduce binocular vision Three-dimensional reconstruction carries out the complexity of volume calculating, and the volume reducing irregularly shaped object calculates error.
Summary of the invention
In order to overcome the shortcoming of above-mentioned prior art, it is an object of the invention to provide a kind of based on compressed sensing Irregularly shaped object volume measuring method, in commercial production, irregular material cubing is as background, utilize The part data that shape from shading obtains carry out secondary reconstruct to irregularly shaped object, are used for realizing irregularity The hard measurement of body volume, accelerates measuring speed, improves production efficiency.
To achieve these goals, the technical solution used in the present invention is:
A kind of irregularly shaped object volume measuring method based on compressed sensing, comprises the steps:
Three photographic head are installed and are positioned at three directions left and right, upper composition volume survey of irregularly shaped object to be measured Amount system, first demarcates volume measuring system, obtains the pixel equivalent of system;
Secondly, three photographic head are utilized to obtain object under test vertical view, left view, the right side respectively regarding three directions Original image, and obtained the maximum peripheral lengths image coordinate parameter of object under test by top view, simultaneously Utilize the reconstruct scope overlooking greatest length pixel count corresponding to the view of foundation segmentation left and right, extensive by light and shade Complex shape method carries out three-dimensionalreconstruction to left view and right view respectively, is randomly chosen shape from shading method The partial coordinates point obtained, with partial coordinates point as measured value, selects compression calculation matrix and sparse base, Rebuild the original coordinates of left and right view, improve the accuracy of coordinate figure, under image coordinate, calculate a left side respectively The volume of right view reconstruction of objects, then sues for peace;
Finally, the actual volume of object under test in world coordinate system is calculated according to pixel equivalent.
Described demarcating system, the method for the pixel equivalent obtaining system is: utilize this system to one Object known to individual geometric parameter L measures, and obtains representing the pixel count M of its parameter, then utilizes Formula ε=L/M calculates pixel equivalent ε, obtains the actual size representated by unit picture element.
Utilize Da-Jin algorithm Threshold segmentation that top view is carried out binary conversion treatment, then obtain top view and push up up and down Point position, takes both lateral symmetry centrages, utilizes and overlooks greatest length pixel count for about according to segmentation Reconstruct scope corresponding to view.
The process respectively left view and right view being carried out three-dimensionalreconstruction by shape from shading method is:
First, left and right view is split with background, background gray levels is set to 0;
Secondly according to the half-tone information of irregularly shaped object left and right view, the smoothness condition of body surface is introduced, Solve the Grad of body surface;
The last height value being obtained object by Grad, and then obtain the three dimensional structure of object.
Test result indicate that, the present invention relates to measures irregularly shaped object volume based on compressed sensing, The cubing of irregularly shaped object can be realized, be the most contactless volume measuring method of one.If Apply the present invention to field of industrial production, can preferably solve industry initial material volume cannot accurately, Quickly, the problem of non-cpntact measurement, reduce manual operation, promote industrial development, improve national economy, tool There is the biggest market potential.
Accompanying drawing explanation
Fig. 1 is volume measuring method process chart of the present invention.
Detailed description of the invention
The present invention is using stone as measurand, and handling process as shown in Figure 1, is embodied as step such as Under:
Step1, three photographic head of installation are positioned at three directions left and right, upper composition of irregularly shaped object to be measured Volume measuring system, first demarcates volume measuring system, i.e. utilizes this system to a geometric parameters Object known to number L measures, and obtains representing the pixel count M of its parameter, then utilizes formula ε=L/M calculates pixel equivalent ε, obtains the actual size representated by unit picture element.
Step2, obtain the top view of determinand and left and right two width side view by CCD camera.
Step3, utilize Da-Jin algorithm Threshold segmentation that top view is carried out binary conversion treatment.
Step4, obtain the upper and lower vertex position of top view, take both lateral symmetry centrages, utilize and overlook Long length pixel count is according to the reconstruct scope corresponding to the view of segmentation left and right.
Step5, according to shape from shading method, left and right view is carried out three-dimensionalreconstruction, recovers left and right view 3-D view, obtain NL image coordinate set of threedimensional model of left view: (xi,yi,zi)';Right view NR image coordinate set of threedimensional model: (xi,yi,zi)'。
Step6, NL (x to left viewi,yi,zi) randomly select ML coordinate points as measured value YML×1, Wherein YML×1Each element be 1 × 3 the coordinate figure of point, select condensation matrix ΦML×NL, sparse base ΨNL×NL, Utilize compressed sensing to recover the original coordinates (x of left viewi,yi,zi)。
Actual voxel block number included in Step7, statistics left view threedimensional model space, is calculated as sum_left。
Step8, NR (x to right viewi,yi,zi) randomly select MR coordinate points as measured value YMR×1, Wherein YMR×1Each element be 1 × 3 the coordinate figure of point, select condensation matrix ΦMR×NR, sparse base ΨNR×NR, Utilize compressed sensing to recover the original coordinates (x of right viewi,yi,zi)。
Actual voxel block number included in Step9, statistics right view threedimensional model space, is calculated as sum_right。
In Step10, image coordinate system, the voxel block number that left and right threedimensional model comprises is sum=sum_left+sum_right。
Step11, utilize pixel equivalent, utilize formula V=sum × ε3, the volume in image coordinate system is changed Calculate and measure volume for reality.
Step12, output object actual volume.
The three-dimensionalreconstruction process of above-mentioned right view:
Step1: the right view after being processed by gray processing is split with background, and background gray levels is set to 0;
Step2: be that (x y), surface graded is z=z by the representation of a surface of the right view of irregularly shaped object (p, q), i.e. p ( x , y ) = ∂ z ( x , y ) ∂ x , q ( x , y ) = ∂ z ( x , y ) ∂ y , Then the normal vector of curved surface is (p, q ,-1), light Incident vector be estimated as: (ps,qs,-1)。
Step3: shape from shading method assumes that the gray value E of object table cake is only by the cosine of this point source Determine: E ( x , y ) = pp s + qq s + 1 1 + p 2 + q 2 1 + p s 2 + q s 2 ,
Step4: introduce integrability constraints solve surface graded (p, q).
Step5: according to (p q) solves partial differential equation and obtains z (x, y), for object right view midpoint (xi,yi), coordinate figure is (xi,yi,zi(xi,yi)) ', i.e. (xi,yi,zi) ', and then obtain the three dimensional structure of right view.
The three-dimensionalreconstruction process of left view:
Step1: the left view after being processed by gray processing is split with background, and background gray levels is set to 0;
Step2: be that (x y), surface graded is z=z by the representation of a surface of the left view of irregularly shaped object (p, q), i.e. p ( x , y ) = ∂ z ( x , y ) ∂ x , q ( x , y ) = ∂ z ( x , y ) ∂ y , Then the normal vector of curved surface is (p, q ,-1), light source The estimation gradient in direction is (ps,qs).
Step3: shape from shading method assumes that the gray value E of object table cake is only by the cosine of this point source Determine: E ( x , y ) = pp s + qq s + 1 1 + p 2 + q 2 1 + p s 2 + q s 2 ,
Step4: introduce integrability constraints solve surface graded (p, q).
Step5: according to (p q) solves partial differential equation and obtains z (x, y), for object left view midpoint (xi,yi), coordinate figure is (xi,yi,zi(xi,yi)) ', i.e. (xi,yi,zi) ', and then obtain the three dimensional structure of left view.

Claims (4)

1. an irregularly shaped object volume measuring method based on compressed sensing, comprises the steps:
Three photographic head are installed and are positioned at three directions left and right, upper composition volume survey of irregularly shaped object to be measured Amount system, first demarcates volume measuring system, obtains the pixel equivalent of system;
Secondly, three photographic head are utilized to obtain object under test vertical view, left view, the right side respectively regarding three directions Original image, and obtained the maximum peripheral lengths image coordinate parameter of object under test by top view, simultaneously Utilize the reconstruct scope overlooking greatest length pixel count corresponding to the view of foundation segmentation left and right, extensive by light and shade Complex shape method carries out three-dimensionalreconstruction to left view and right view respectively, it is characterised in that
It is randomly chosen the partial coordinates point that shape from shading method obtains, with partial coordinates point as measured value, Select compression calculation matrix and sparse base, rebuild the original coordinates of left and right view, improve the accurate of coordinate figure Degree, calculates the volume of left and right view restructuring object under image coordinate respectively, then sues for peace;
Finally, the actual volume of object under test in world coordinate system is calculated according to pixel equivalent.
Irregularly shaped object volume measuring method based on compressed sensing the most according to claim 1, its Being characterised by, described demarcate system, the method for the pixel equivalent obtaining system is: utilize this to be Object known to one geometric parameter L is measured by system, obtains representing the pixel count M of its parameter, so After utilize formula ε=L/M to calculate pixel equivalent ε, obtain the actual size representated by unit picture element.
Irregularly shaped object volume measuring method based on compressed sensing the most according to claim 1, its It is characterised by, utilizes Da-Jin algorithm Threshold segmentation that top view is carried out binary conversion treatment, then obtain top view Vertex position up and down, takes both lateral symmetry centrages, utilizes and overlooks greatest length pixel count for according to dividing Cut the reconstruct scope corresponding to the view of left and right.
Irregularly shaped object volume measuring method based on compressed sensing the most according to claim 1, its Being characterised by, the process respectively left view and right view being carried out three-dimensionalreconstruction by shape from shading method is:
First, left and right view is split with background, background gray levels is set to 0;
Secondly according to the half-tone information of irregularly shaped object left and right view, the smoothness condition of body surface is introduced, Solve the Grad of body surface;
The last height value being obtained object by Grad, and then obtain the three dimensional structure of object.
CN201410066892.5A 2014-02-26 2014-02-26 A kind of irregularly shaped object volume measuring method based on compressed sensing Active CN103822581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410066892.5A CN103822581B (en) 2014-02-26 2014-02-26 A kind of irregularly shaped object volume measuring method based on compressed sensing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410066892.5A CN103822581B (en) 2014-02-26 2014-02-26 A kind of irregularly shaped object volume measuring method based on compressed sensing

Publications (2)

Publication Number Publication Date
CN103822581A CN103822581A (en) 2014-05-28
CN103822581B true CN103822581B (en) 2016-11-23

Family

ID=50757758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410066892.5A Active CN103822581B (en) 2014-02-26 2014-02-26 A kind of irregularly shaped object volume measuring method based on compressed sensing

Country Status (1)

Country Link
CN (1) CN103822581B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279785B (en) * 2014-06-24 2021-10-15 北京鸿合智能系统有限公司 Method and device for three-dimensional modeling of exhibition stand
CN105944976A (en) * 2016-05-16 2016-09-21 陕西科技大学 Method and device for sorting massive gangue by using digital image processing technology
CN108240732B (en) * 2016-12-23 2020-11-06 青岛海尔智能技术研发有限公司 Refrigerator and food material statistical method and system with specific contour
CN109903328B (en) * 2017-12-11 2021-12-21 宁波盈芯信息科技有限公司 Object volume measuring device and method applied to smart phone
CN109307638A (en) * 2018-08-07 2019-02-05 江苏大学 A kind of measuring method and device of steamed bun specific volume
CN110095083B (en) * 2019-04-28 2020-12-25 南京工程学院 Hot casting measuring method and device based on compressed sensing algorithm
CN111986250A (en) * 2019-05-22 2020-11-24 顺丰科技有限公司 Object volume measuring method, device, measuring equipment and storage medium
CN113192015A (en) * 2021-04-13 2021-07-30 广西师范大学 Surface defect detection method and system based on depth information
CN113252103A (en) * 2021-05-11 2021-08-13 安徽理工大学 Method for calculating volume and mass of material pile based on MATLAB image recognition technology

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101893552A (en) * 2010-07-06 2010-11-24 西安电子科技大学 Hyperspectral imager and imaging method based on compressive sensing
CN103186891A (en) * 2013-03-11 2013-07-03 西安电子科技大学 Hexagon image reconstruction method based on compressed sensing
CN103237204A (en) * 2013-03-21 2013-08-07 上海交通大学 Video signal collection and reconfiguration system based on high-dimension compressed sensing
CN103278090A (en) * 2013-05-14 2013-09-04 陕西科技大学 Visual measurement method for volume of irregular object
CN103337087A (en) * 2013-07-04 2013-10-02 西北工业大学 Compressive sensing reconstruction method based on pseudo-inverse adaptive matching pursuit

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9121915B2 (en) * 2010-12-09 2015-09-01 The Board Of Trustees Of The Leland Stanford Junior University Multi-dimensional cardiac and respiratory imaging with MRI

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101893552A (en) * 2010-07-06 2010-11-24 西安电子科技大学 Hyperspectral imager and imaging method based on compressive sensing
CN103186891A (en) * 2013-03-11 2013-07-03 西安电子科技大学 Hexagon image reconstruction method based on compressed sensing
CN103237204A (en) * 2013-03-21 2013-08-07 上海交通大学 Video signal collection and reconfiguration system based on high-dimension compressed sensing
CN103278090A (en) * 2013-05-14 2013-09-04 陕西科技大学 Visual measurement method for volume of irregular object
CN103337087A (en) * 2013-07-04 2013-10-02 西北工业大学 Compressive sensing reconstruction method based on pseudo-inverse adaptive matching pursuit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于单幅灰度图像的微胶点体积测量;陈从平 等;《计算机测量与控制》;20101231;第18卷(第10期);第2238页右栏第3段-第2239段右栏倒数第4段,图2-3 *

Also Published As

Publication number Publication date
CN103822581A (en) 2014-05-28

Similar Documents

Publication Publication Date Title
CN103822581B (en) A kind of irregularly shaped object volume measuring method based on compressed sensing
CN100476345C (en) Method for measuring geometric parameters of spatial circle based on technique of binocular stereoscopic vision
CN102376089B (en) Target correction method and system
CN103278090B (en) A kind of vision measuring method of irregularly shaped object volume
CN105300316B (en) Optical losses rapid extracting method based on grey scale centre of gravity method
CN102697508B (en) Method for performing gait recognition by adopting three-dimensional reconstruction of monocular vision
CN100388319C (en) Multi-viewpoint attitude estimating and self-calibrating method for three-dimensional active vision sensor
CN102589530B (en) Method for measuring position and gesture of non-cooperative target based on fusion of two dimension camera and three dimension camera
CN105046743A (en) Super-high-resolution three dimensional reconstruction method based on global variation technology
CN107067470A (en) Portable three-dimensional reconstruction of temperature field system based on thermal infrared imager and depth camera
CN105157609A (en) Two-sets-of-camera-based global morphology measurement method of large parts
CN102221331B (en) Measuring method based on asymmetric binocular stereovision technology
CN102054276B (en) Camera calibration method and system for object three-dimensional geometrical reconstruction
CN101398886A (en) Rapid three-dimensional face identification method based on bi-eye passiveness stereo vision
CN103278138A (en) Method for measuring three-dimensional position and posture of thin component with complex structure
CN102252653A (en) Position and attitude measurement method based on time of flight (TOF) scanning-free three-dimensional imaging
CN104408762A (en) Method for obtaining object image information and three-dimensional model by using monocular unit and two-dimensional platform
CN107796370B (en) Method and device for acquiring conversion parameters and mobile mapping system
CN108596975A (en) A kind of Stereo Matching Algorithm for weak texture region
CN102779354B (en) Three-dimensional reconstruction method for traditional Chinese medicine inspection information surface based on photometric stereo technology
CN111260720A (en) Target height measuring system based on deep learning method
CN103948196A (en) Human body data measuring method
CN103438834A (en) Hierarchy-type rapid three-dimensional measuring device and method based on structured light projection
CN103106650A (en) Method for solving intrinsic parameters of camera by using three non-concentric circles
CN105277144A (en) Land area rapid detection method based on binocular vision and detection device thereof

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