You are on page 1of 10

Research Journal of Textile and Apparel

3D Profiling of Cloth Appearances Based on Stereo Vision Method


Binjie XIN, Jinlian HU,
Article information:
To cite this document:
Binjie XIN, Jinlian HU, (2005) "3D Profiling of Cloth Appearances Based on Stereo Vision Method", Research Journal of
Textile and Apparel, Vol. 9 Issue: 1, pp.13-20, doi: 10.1108/RJTA-09-01-2005-B002
Permanent link to this document:
http://dx.doi.org/10.1108/RJTA-09-01-2005-B002
Downloaded on: 20 May 2017, At: 05:11 (PT)
References: this document contains references to 0 other documents.
To copy this document: permissions@emeraldinsight.com
The fulltext of this document has been downloaded 7 times since 2006*
Access to this document was granted through an Emerald subscription provided by emerald-srm:614218 []
For Authors
If you would like to write for this, or any other Emerald publication, then please use our Emerald for Authors service
information about how to choose which publication to write for and submission guidelines are available for all. Please
Downloaded by EKB Data Center At 05:11 20 May 2017 (PT)

visit www.emeraldinsight.com/authors for more information.


About Emerald www.emeraldinsight.com
Emerald is a global publisher linking research and practice to the benefit of society. The company manages a portfolio of
more than 290 journals and over 2,350 books and book series volumes, as well as providing an extensive range of online
products and additional customer resources and services.
Emerald is both COUNTER 4 and TRANSFER compliant. The organization is a partner of the Committee on Publication
Ethics (COPE) and also works with Portico and the LOCKSS initiative for digital archive preservation.

*Related content and download information correct at time of download.


RJTA Vol. 9 No. 1 2005

3D Profiling of Cloth Appearances Based on


Stereo Vision Method
Binjie XIN and Jinlian HU
Institute of Textile & Clothing
The Hong Kong Polytechnic University,
Hung Hom, Kowloon, Hong Kong

ABSTRACT

Cloth has the nature of three-dimensional, flexible and non-rigid, some traditional
methods based on 2D imaging and contact-type 3D surface measurement methods
can not work for this kind of material. In this paper we present a study of
digitalization of three dimensional cloth appearances based on stereo vision method.
The 3D stereo system includes a set of mirror group (3D lens) and a digital camera
with high resolution. Based on the camera geometry and stereo matching techniques,
the depth map of cloth could be calculated so as to evaluate the 3D appearance of
Downloaded by EKB Data Center At 05:11 20 May 2017 (PT)

fabrics and related objects. The results show it is effective and workable to use this
system to study the cloth/garment’s 3D deformation or draping profile.

1. Background One way of getting around these difficulties


would be “data-driven” approach and “backward”
In nature, cloth and related materials are three method in which the three-dimensional draping
dimensional and easy to be stretched; bended or profile of real-world cloth is first acquired
sheared these unique characters endow cloth with digitally and analyzed objectively.
aesthetic feeling, wearability, soft hand feeling.
Many researchers (Baraff and Witkin, 1998; In this research, we design and develop the 3D
Breen, et al., 1992; Baraff and Witkin, 1998; profiling system for three-dimensional
Eberhardt, et al., 1996; Hu, 2001; Jojic and Huang, characterization of cloth/garment. By using this
1997, Okabe, et al., 1992) tried to predict and digital system, we could then be easy to make a
simulate the behaviour of cloth in computer using comprehensive study on the 3D profile and
digital methods, which is a kind of “Forward related deformation behaviors of real-world
Engineering” or CAD for textile industry. cloth/garment. First, we develop a set of 3D lens
However, it highly depends on the successful attached with a digital camera to capture the
modeling of basic textile elements from fiber to stereo images of objects, then we calibrate the
yarn, which is still a difficult and challenging job system to extract the external and internal
for textile persons. parameters of stereo cameras, after that, we build
up the point matching between left image and
On the other hand, a comprehensive right image using stereo match techniques, so we
understanding of the real behaviour of cloth will could calculate the 3D coordinate of each points
be obvious to speed the development of on object’s surface, at last we generate the
simulating techniques. So how to characterize the triangle and mesh of object’s surface and map the
real 3D profile and behaviour of cloth in a digital texture image on its mesh model. In this case, the
and objective way will be one of valuable topics 3D image of real-world object could be
for both textile simulation and quality evaluation. digitalized in computer for further analysis.

13
RJTA Vol. 9 No. 1 2005

2. Methodology

System Set-up

1 Left side mirror


2 Right side mirror
1 3 4 2 3 Left center mirror
4 Right center mirror
5 Digital camera

Fig. 1. Schematic of 3D Camera System


Downloaded by EKB Data Center At 05:11 20 May 2017 (PT)

Figure 1 shows a schematic of a typical setup for capturing moving objects such as a skirt on
3D camera system. As shown in Fig.2, the 3D human body. So we adopt a set of mirror
camera is comprised of two main hardware reflection group to capture the stereo image using
components: a digital camera, a set of mirror one camera as shown in Figure 2. The basic
group (Stereo lens). As well known, two cameras principle is to reflect two views into one image
are necessary for the capturing of stereo image using mirror reflection method; the mirror group
pairs, however, the two camera stereo system has could achieve the best synchronization, which is
the disadvantage in spectral response, gain, offset, very important for 3D digitalization of moving
calibration and synchronization especially when objects.

Fig. 2. Stereo image captured using 3D camera system

14
RJTA Vol. 9 No. 1 2005

Flowchart of 3D Reconstruction some light patterns could be projected on the


objects so as to build more high correlation of the
Conceptually, the system works as follows: same point in left view and right view. Regarding
system calibration, stereo image captured, stereo to cloth/garment, its natural pattern contains lots
matching, depth calculation, mesh model of texture information for point matching, except
reconstruction, texture mapping. In some cases, in for those pure white or black clothes.
order to improve the quality of stereo matching,

Objects Stereo image Stereo Depth


capture Matching calculation

Calibration
Texture Mesh
mapping Model
Downloaded by EKB Data Center At 05:11 20 May 2017 (PT)

Fig. 3. Flowchart of 3D reconstruction

System Calibration extrinsic parameters (3 for


rotation R = [r1 r2 r3 ] and 3 for
Before the 3D camera can be used, we need to
obtain the intrinsic and extrinsic parameters of the [
translation T = t x ty tz ]
T
). A 2d point is
system required for depth calculation: focal length denoted by m = [u; v] and a 3D point is denoted
T

fx, fy u ,v
( ), principle point ( 0 0 ), skew by M = [ X , Y , Z ]T , then the relationship
coefficient ( γ ), distortion ( k1 , k 2 , p1 , p 2 ) and 6 between 3D and 2D point is given by:

X 
u   f x γ u0 0
R T   Y  ~ ~
s  v  =  fy v0 0  T  , sm = HM ,
0 1  Z 
1   1 0   
1
~
~, M coplanar corners on the chessboard and 2d image
Where s is an arbitrary scale factor, m is
coordinate of its corresponding points, intrinsic
augmented vector of m, M . and extrinsic parameters could be estimated based
on nonlinear optimization method. In this paper,
Zhang (2000 & 1999) introduced a very flexible we adopt this method to calculate the intrinsic and
technique for camera calibration based on a planar extrinsic parameters of stereo camera. Figure 4
pattern shown at a few (at least two) different shows a stereo picture of printed chessboard for
orientations. By knowing the 3d coordinate of camera calibration.

15
RJTA Vol. 9 No. 1 2005

Fig. 4. Stereo image of chessboard for camera calibration

Stereo Matching image to reproject image planes onto common


plane parallel to line between optical centers, the
Downloaded by EKB Data Center At 05:11 20 May 2017 (PT)

Traditionally, the image point matching is two corresponding points are located on the same
dimensional problem, that means, searching the horizontal scanline, so as to reduce the two
corresponding points in both x and y direction. dimensional matching into one dimensional
However, knowing the intrinsic and extrinsic searching (Sun, 2002).
parameters of camera, we could rectify the stereo

Fig. 5. Rectified image of stereo image Fig. 6. Intensity curve of scanline

A correlation-based algorithm, defined in two rectified images pair I and I ' :


Equation 2 is used to do the matching between


i =l
[ I (u + i, v) − I (u, v)][ I ' (u '+i, v) − I ' (u ' , v)]
C ( p, p ' ) = i =−l

(2l + 1)σ (u , v)σ ' (u ' , v)

In this equation, the similarity of intensities centered at p and p' . I (u + i, v) and σ (u, v) are
around two points p = (u, v) T ∈ I and the average intensity and standard deviation
p' = (u ' , v) T ∈ I ' along the scanline v . (2l + 1) is within the correlation window at point p
the width of the correlation searching window respectively, and defined as:

16
RJTA Vol. 9 No. 1 2005

∑ ∑
i =l i =l
I (u + i, v) I 2 (u + i, v) 2
I (u, v) = i=−l
, and σ (u , v) = i =−l
− I (u , v)
2l + 1 2l + 1

I ' (u '+i, v) and σ ' (u ' , v) have the similar around p and p ' are strongly correlated to each
definition and meaning for point p '∈ I ' . If the other. If the value is close to 0, the two profiles
are not similar at all.
value of C ( p, p' ) is close to 1, the intensities

Depth Calculation

Z
Image plane xL xR
pL pR
Downloaded by EKB Data Center At 05:11 20 May 2017 (PT)

f
OL OR
Camera center
T

Fig. 7. Depth calculation for parallel cameras

As shown in Figure 7, P is surface point of object, The Generation o f Mesh Model


p L and p R are left image and right image points
of P . f is the focal length of camera, and T is After we computed the depth of each surface
point, the 3D point cloud of object could be
the baseline of two parallel cameras. After we generated very easily, just displaying the discrete
finish the correspondence of one point in left and surface point by point. As we already have the
right image, the horizontal coordinates of this point data, the next step is to retrieve the triangle
point in left image and right image x L , x R could mesh so that all of these points are meshed
be determined. Then the depth Z of point P together into a solid. Each vertex in the triangle is
could be calculated using the following equation: represented as an index into the point array we
created earlier. Every triangle is constructed by
T + x r − xl T T three neighborhood vertexes according to the
= ⇒ Z= f . sequence of x, y coordinate as shown in Figure 8.
Z− f Z xl − x r

17
RJTA Vol. 9 No. 1 2005

P0(x0,y0) P1(x1,y0) x

P2(x1,y0)

y
Fig. 8. Triangulation of surface points

Texture Mapping normalized so that the sum of the weights over all
the images is equal to 1.0. We then use the
Instead of casting a ray from each pixel to the rectified image of the stereo image as the texture
mesh model and computing the texture blending map, set the colors of the vertexes according to
weights on a pixel-by-pixel basis, we use a more their blending weights and texture map. Let
Downloaded by EKB Data Center At 05:11 20 May 2017 (PT)

efficient approach. For each vertex on the mesh, C L and W L be the texture map and weight map of
we compute the blending weight for two views left view, C R and W R be the texture map and
based on the angle between normal and the weight map of right view, then for each pixel
camera direction. If the vertex is invisible, the
( x, y ) , its color on the final blending texture map
weight is set to 0. The weights are then
is:

C ( x, y ) = W L ( x, y )C L ( x, y ) + WR ( x, y )C R ( x, y )

3. Experiments and Results calculated in digital way. The 3D coordinate


information could be used for the investigation of
In this research, we choose several cloths to verify surface deformation due to the external forces or
the 3D camera system developed for digitalization gravity, if we digitalize the 3D coordinate
of flexible object’s 3D surface. One shirt on sequences of one cloth during its deformation, we
human body, one knitting fabric covering on a also could evaluate some mechanical behaviors of
ball, and one seam of jacket are digitalized and cloth. The color information could be used for
investigated by using our current system as shown appearance evaluation or identification of color
in Figure 9-14. Both 3D coordinate and color defects.
information of each surface point could be

18
RJTA Vol. 9 No. 1 2005

Fig. 9. Stereo image of knitting fabric Fig. 10. Mesh Model of knitting fabric
covering on a ball covering on a ball
Downloaded by EKB Data Center At 05:11 20 May 2017 (PT)

Fig. 11. Stereo image of a shirt on Fig.12. Mesh Model (texture mapping)
human body of a shirt on human body

Fig. 14. Mesh Model (texture mapping) of


Fig. 13. Stereo image of one seam of jacket
one seam of jacket
19
RJTA Vol. 9 No. 1 2005

4. Conclusion 2 Breen, D.E., House, D.H. and Getto, P.H.


(1992), “A physically-based particle model
A workable 3D camera is developed in this paper of woven cloth”, Visual Computer, vol. 8,
for digitalization of cloth/garment and other no. 5-6, pp. 264-77.
related profile. We have described the design and 3 Sun, Changming (2002), “Fast stereo
implementation of a 3D color camera based on a matching using rectangular subregioning
set of mirror group (stereo lens) and single digital and 3D maximum-surface techniques”,
camera. Our approach is automatic and International Journal of Computer Vision,
significantly suitable for 3D reconstruction of vol. 47, no.1/2/3, May 2002, pp. 99-117.
cloth/garment, especially it works well to 4 Baraff, D. and Witkin, A. (1998), “Large
digitalize the moving objects so as to investigate steps in cloth simulation”, In Proceedings of
the deformation of cloth and garment dynamically. ACM SIGGRAPH 98, pp. 43-54.
Both 3d coordinate and color information could 5 Eberhardt B., Weber, A. and Strasser, W.
be extracted using this system, so it could be (1996), “A fast, flexible, particle-system
further developed for quality control and surface model for cloth draping”, IEEE Computer
measurement. In the next step of our research, we Graphics and Applications, pp. 52-9.
will apply this equipment to do the “Data Driven” 6 Hu, Jinlian (2001), “Garment drape
prediction and simulation of cloth/garment, which simulation for a new generation CAD
is much more close to the real-world. At the same system”, Textile-Asia. 32(4), pp. 25-27.
time, all of three-dimensional features, such as 7 Jojic, N. and Huang, T. (1997), “Estimating
Downloaded by EKB Data Center At 05:11 20 May 2017 (PT)

wrinkle, pilling, bagging, draping, and body size cloth draping parameters from range data”.
and so on could be digitalized and investigated by In International Workshop on Synthetic-
using this method. However, the model merging Natural Hybrid Coding and 3-D Imaging,
is not available in this system, so it can not build pp. 73-76.
up a 360° model by merging three or more mesh 8 Okabe, H., Imaoka, H., Tomiha, T. and
models from different viewing direction. Niwaya, H. (1992), “Three dimensional
apparel CAD system”, Computer Graphics,
vol. 26, no. 2, pp. 105-10.
Acknowledgements
9 Zhang, Z. (2000), “A flexible new technique
for camera calibration”, IEEE Transactions
We would like to acknowledge the financial
on Pattern Analysis and Machine
support of the Hong Kong Polytechnic University.
Intelligence, 22(11):1330-1334.
10 Zhang, Z. (1999), “Flexible camera
REFERENCES calibration by viewing a plane from
unknown orientations”, International
1 Baraff, D. and Witkin, D. (1998), “Large Conference on Computer Vision (ICCV'99),
steps in cloth simulation”, SIGGRAPH98, Corfu, Greece, September 1999, pp. 666-
Computer Graphics Proceedings, Annual 673.
Conference Series, pp. 43-54.

20
This article has been cited by:

1. J. Hu, B. XinStructure and mechanics of woven fabrics 48-83. [CrossRef]


Downloaded by EKB Data Center At 05:11 20 May 2017 (PT)

You might also like