Startseite The Impact and Importance of Fabric Image Preprocessing for the New Method of Individual Inter-Thread Pores Detection
Artikel Open Access

The Impact and Importance of Fabric Image Preprocessing for the New Method of Individual Inter-Thread Pores Detection

  • Magdalena Owczarek EMAIL logo
Veröffentlicht/Copyright: 18. September 2020

Abstract

The paper describes the impact and importance of preprocessing methods of fabric image for detection of inter-thread pores (ITP), which is a new method of individual ITP identification. The aim of this experiment is to identify precisely every individual ITP of fabric structure by using optimal preprocessing algorithm for further quantitative, morphometric structural analysis of specialized fabrics (barriers, industrial filters, composites, others) in context of air permeability, flow resistance, UV radiation, viruses penetration, thermal comfort by estimation fabric porosity, especially macroporosity parameters and cover factor. The correct identification of individual ITP depends on the acquisition method and the preprocessing algorithm. It was conducted by analyzing the adaptation of digital image preprocessing methods for two structures of plain weave fabric in two magnification zooms, 1.25 and 0.8. Preprocessing operations were performed in the area of spatial operations of the image. The optimal preprocessing algorithm includes low-pass filtering, histogram equalization, nonlinear filtering, thresholding, and morphological operation. This algorithm was selected based on the factors developed by the author (ITP detection, RID factor—a difference between the real and model ITP areas) which rely on the ITP size, shape, and location. The graphic view of the ITP contour position on the fabric image is a verification element in the optimal preprocessing algorithm. The presented results of the air permeability of two different plain weave structures confirm the need to optimize the algorithm of pre-image processing methods to precisely detect each individual ITP in the fabric image.

1 Introduction

The development of the modern industrial civilization means heavy demand for textile products and here particularly to provide an effective barrier to flow, passage or a permeation of liquids, gases, air, radiation of different origin and the bodies of different sizes. In this type of product, the structure regularity and its accurate identification have a decisive impact on the product quality, especially in individual inter-thread pores (ITP) identification.

The methods of analyzing the structures used in this area should be approached with great care, for example for filtering applications, pore size influences the performance of the filter. Research shows that inter-thread pore is presented in a variety of contexts: air permeability of woven fabrics [1,2,3,4,5], flow resistance [6, 7], UV radiation [8], thermal comfort by estimation of porosity [9], macroporosity parameters [10] or fabric cover factor [1, 11, 12]. The publications demonstrate the significant influence of structure parameters, including porosity especially macroporosity, on the filtering properties of these structures. The porosity is defined as a physical characteristic of woven fabric, which is the portion of air volume in percentage to the total volume of fabric. The porosity of woven fabrics is usually divided into two types, i.e., the microporosity caused by the void spaces among fibers in threads and the macroporosity, which is a consequence of the void spaces among threads [2]. The macroporosity, which includes information about every individual ITP, is most important for the air permeability.

According to the publications, ITP were analyzed by considering all flat area in the fabric image as the average value. In this research, the importance of fabric image preprocessing in the detection of individual ITP is presented. It is a new concept to identify each ITP in the image of fabric structures. The research is based on the individual ITP identification method used in morphometrical structural analysis in woven fabrics as shown in an article. The ITP parameters were described in three aspects: size, shape, and location in the fabric structure [13].

Digital image analysis of the fabric structure began in the 1980s. Many studies have shown that over 90% of the issues in computer image analysis are associated with the anisotropic property of textiles. Textile objects are characterized with anisotropy in the structure, surface, color, pattern, and absorption of light. These are the main elements that need to be adequately addressed when the desired information is obtained from the image.

The acquisition methods, for assessing textiles, depending on the needs, are based on the use of a scanner, microscope with a CCD camera or a digital camera with lens. The scanner guarantees stable acquisition parameters [7, 14]. It does not allow adaptation of the image to specified magnification and features smaller than 0.042 [mm] will not be detected [13]. In most ITP analysis, CCD cameras with a microscope are used [1,2,3, 10,12,13].

Different studies used different magnifications of fabric images, and thus different ITP values, for example, 322 ITP, were corresponding to 23 × 14 threads in image, which equates to approximately 5.5 × 4.2 [mm] of fabric [1], or between 50 and 100 ITP in images [10], or near 90 ITP, 9 × 8 threads, 2.6 × 3.4 [mm] linear field size in every image [11, 12]. If we use a larger image magnification, we will obtain the greater detection accuracy and accuracy of the size, shape and location of all ITPs in the fabric image. If the test is to focus on only a general, estimated assessment of macroporosity, then the magnification is not of greatest importance.

In this research the new approach to individual ITP analysis in the fabric image was applied and higher fabric image magnification is used. For better ITP detection in each fabric image, only about 28–36 ITPs were observed, which corresponds to 8 × 5 threads and 3 × 3 [mm] linear field size for a sample of plain weave fabric.

Secondly, in the research [3, 10] macroporosity parameters were calculated from global size distribution of pore density. In this study and as presented in this article, the macroporosity parameters are calculated from every individual ITP. This new approach to ITP analysis allows identifying the size, shape and location of each individual ITP [13]. Therefore, in this case, it is crucial to develop new parameters of the ITP detection and accuracy (RID factor)—as the criterion in the selection of the optimal fabric image preprocessing algorithm.

The main problem of ITP identification in image analysis is the misclassification of pixels, which were close to yarn edges which is the ITP boundary line, resulting in, among other things, the image noise [3, 11]. Earlier our research [15] showed the preprocessing method can not only correct the image from the noise but can also change the information in the image. The preprocessing methods on artificial fabric images with different noise label (from 5% to 80%) were verified. The desired results were obtained in low-pass filtration, median filtration, histogram equalization, and nonlinear filters. Low-pass filtration effectively removes noise up to a level of 20%. In the statistical filtration—the median filter does not get a blurring effect such as in low pass filters, but induces adverse hyperplasia of the ITP areas. The nonlinear filtration—square and cubic functions for the images up to 40% noise—decreases the error of further analysis to zero. Different studies used a range of methods for the noise removal, for example, in articles [16, 17] only a median filter was used and in article [18], image brightness histogram equalization is used. It is also verified [15] that image brightness histogram equalizations for up to 50% disturbance can reduce the noise to zero. Therefore, using the various types of filters for image preprocessing can improve, but also deteriorate the results of the further morphometrical analysis of the image elements. Some authors have used two types of operations from preprocessing methods. In the article [1], the image preprocessing Gaussian filtering and histogram equalization were used to minimize noise and enhance contrast.

This article concentrates on building an optimal algorithm for image preprocessing of fabrics with plain weave, taking into account image acquisition parameters. The criteria of optimal algorithm were the two factors as stated by the author: ITP detection; RID factor—a difference between the real and model ITP areas. They rely on the ITP size, shape, and location. The optimal algorithm corresponds to the visualization of ITP boundary line on the fabric image. The aim of this experiment is identifying precisely every individual element ITP, their surface areas boundaries, for further quantitative and morphometric structural analysis [13] of specialized fabrics in context of air permeability, flow resistance, UV radiation, viruses penetration and fabric macroporosity or cover factor. This experiment and example of comparison of air permeability results were given for two structures of the woven plain fabric. These structures were differentiated by the grouping of warp threads.

2 Experimental Methodologies and Devices

2.1 Sample preparation

The analysis was carried out on the fabric structure of the plain weave. This material was chosen due to the filtration application. Selected parameters of the fabric and component threads are given in Table 1 and visualization in Figure 1. The structure of the plain weave, in principle, should be regular, but there is a grouping of warps that disturbs this structure and filtration properties. In plain fabric, we can have two kinds of structure, which can have either regular distance or irregular distance between the threads as presented in Figure 1a. These structures differentiated the degree of grouping of warps. That is why the identification of individual ITP is significant, which will help to assess the regularity of the fabric structure and, consequently, the air permeability ability. The criterion of the preprocessing is the detection of soft line border between threads without hairiness. The hairiness can have an impact on the border ITP detection, so in Table 1 this measurement is presented according to the USTER STATISTIC.

Table 1

Measured properties of fabrics P1, P2, and threads

Plain fabrics parametersPlain fabrics P1, P2
Density of warp gwarp [threads/dm]230
Density of weft gweft [threads/dm]130
Threads20 [tex] x2
Linear density of warp [tex]45
Linear density of weft [tex]36
Warp diameter dwarp [mm]0.38
Weft diameter dweft [mm]0.47
Hairiness of thread [-] by USTER STATISTIC7.31
Figure 1 Images of experimental plain weave fabric structures with two image magnifications: zoom 1.25 = 3 × 3 [mm2] and zoom 0.8 = 5 × 5 [mm2]: (a) P1_1.25, P1_0.8—plain weave fabric with grouped structure (b) P2_1.25, P2_0.8—plain weave fabric with ungrouped structure
Figure 1

Images of experimental plain weave fabric structures with two image magnifications: zoom 1.25 = 3 × 3 [mm2] and zoom 0.8 = 5 × 5 [mm2]: (a) P1_1.25, P1_0.8—plain weave fabric with grouped structure (b) P2_1.25, P2_0.8—plain weave fabric with ungrouped structure

These two fabric structures have been evaluated for air permeability, Table 2. The analysis of air permeability was carried out in accordance with the PN-EN ISO 9237: 1998 standard. The measurement was performed at a pressure difference of 10 [daPa]. The data show that the air permeability parameters are at a similar level with a slightly higher value for P1 fabric. Greater air permeability is confirmed by the result of the structural analysis sum of ITP area in the image (Σ_A [mm2]). In contrast, the average size of the ITP area (A [mm2]) is the same for these fabrics. The only problematic indicator is increase in parameters of standard deviation and coefficient of variation of ITP area size for fabric P1 (σ_A [mm2] and cV_A[%]). Therefore, a thorough structural analysis of individual ITP should be performed to be able to assess the size of the elements that these fabrics will be able to filter in the filtration process. In order to determine the exact information on the size of the individual ITP area in the image of the filtration fabric, it is necessary to carry out the appropriate acquisition process and the preprocessing algorithm. These processes have an impact on the result of morphometric analysis, so one should analyze the impact of these processes on the result of the detection and accuracy of ITP determination.

Table 2

The results of air permeability and the ITP structural analysis fabrics P1, P2, where AIR_R, σ_AIR_R, [dm3/min] and cV_AIR_R[%]—air permeability parameters; Σ_A [mm2] sum of ITP area in the image; A, σ_A [mm2] and cV_A [%]—average of ITP area

Fabrics/parametersAir permeabilityStructural analysis
AIR_R [dm3/min.]σ_AIR_R [dm3/min.]cV_AIR_R [%]Σ_A [mm2]A [mm2]σ_A [mm2]cV_A [%]
P1882.1633.773.830.910.0320.0389
P2819.0017.062.080.740.0310.0258

2.2 The test stand

The test stand consists of 4 modules of of image information processing in the digital image analysis system according to the literature [19], shown in Figure 2:

Figure 2 Diagram of image information processing in the digital image analysis system [19].Hardware architecture consists of:
No. 1. OPTICAL SYSTEM—optical image formation module, which contains:
stereoscopy microscope PZO Mst Zoom 1302backlight annular Olympus HIGHLIGHT 3100table with surface moving in two perpendicular directionsNo. 2. OPTOELECTRONIC CONVERTER—module of optical image transformation to electric signal:
camera CCD-4012 A VideOTronic, PAL (625 × 570)No. 3. ANALOG-TO-DIGITAL CONVERTER—module of electric signal transformation to digital image:
A/D converter LFG 1024 firm Logitex; (Frame Grabber with resolutions: 1024 × 1024, 1280 × 1280, 1536 × 1536, 1360 × 1360)No. 4. COMPUTER SOFTWARE—module of processing, analyzing, and visualization of information from the digital image:
computer with author software MagFABRIC.
Figure 2

Diagram of image information processing in the digital image analysis system [19].

Hardware architecture consists of:

  • No. 1. OPTICAL SYSTEM—optical image formation module, which contains:

    • stereoscopy microscope PZO Mst Zoom 1302

    • backlight annular Olympus HIGHLIGHT 3100

    • table with surface moving in two perpendicular directions

  • No. 2. OPTOELECTRONIC CONVERTER—module of optical image transformation to electric signal:

    • camera CCD-4012 A VideOTronic, PAL (625 × 570)

  • No. 3. ANALOG-TO-DIGITAL CONVERTER—module of electric signal transformation to digital image:

    • A/D converter LFG 1024 firm Logitex; (Frame Grabber with resolutions: 1024 × 1024, 1280 × 1280, 1536 × 1536, 1360 × 1360)

  • No. 4. COMPUTER SOFTWARE—module of processing, analyzing, and visualization of information from the digital image:

    • computer with author software MagFABRIC.

The first three modules determine the method of digital image recording, called Image Acquisition. The light energy distribution of a three-dimensional object is captured by the optical system and projected onto the photosensitive surface of the optoelectric transducer, e.g., camera CCD-4012A VideOTronic, PAL (625 × 570). An optical image is created in the two-dimensional space, which is the input signal for the A/D converter LFG 1024 and the video signal is the output. For the image to be analyzed by a digital device, an analogue format must be converted into a digital format. This process is called discretization and it consists of sampling and quantizing. Sampling is the process conversion of parameters into a matrix of points numbers (1024 × 1024), whereas quantization is the conversion of continuous brightness into luminance values (from 16 to 256) [19]. The next module covers the second phase of the image identification preparation (called identification and interpretation), which includes: preprocessing, segmentation, representation, and description. For image analysis, besides standard devices, two newly designed devices were used: (1) a table with the measurement area 30 cm2 and controlled/steered movement of the measurement area in two perpendicular directions and (2) copyright MagFABRIC software for image preprocessing and fabric structure analysis.

2.3 Image acquisition

At the stage of acquiring the image of the fabric, the backlight light was used—passing the light through the fabric by using the optical ring. The lighting equipment was installed at the bottom, perpendicular to the plane of the fabric at a distance of 10 cm. This lighting provides identification of ITP in the fabric and regularity of lighting. The Olympus HIGHLIGHT 3100 lighting parameters are set to provide contrast between the threads and the ITPs. Procedures were developed in the copyright MagFABRIC software to measure and equalize brightness in individual parts of the image to ensure the regularity of this parameter (Figure 3).

Figure 3 Fabrics acquisition lighting irregularity evaluation in the author MagFABRIC software
Figure 3

Fabrics acquisition lighting irregularity evaluation in the author MagFABRIC software

The image magnification was set on 1.25 and 0.8 zooms in the experiment. In the zoom 1.25, we observed max 7 × 5 threads, approximately 24–35 ITP and 3 × 3 [mm] of fabric. In the zoom 0.8, we observed 12 ′ 7 threads, 66–84 ITP, 5 × 5 [mm2], Figure 1. In other literature articles, such magnification values were used to analyze the ITP image, to give: 322 ITP [1], 50–100 ITP [10], near 90 ITP [11, 12]. The spatial resolution of the captured image was 1024 × 1024 pixels. Every image was monochromatic with 8 bpp (bit per pixel), 256 gray level.

2.4 Image preprocessing

The first stage of digital image analysis after the acquisition is image preprocessing. On the basis of literature [19,20,21,22,23,24], the image quality improvement methods or classifications were performed. It was divided into two stages: distortions correction after acquisition and image quality improvement. All procedures were prepared and verified by author with MagFABRIC software.

2.4.1 Distortions correction after acquisition

For distortion correction after the acquisition the procedures were prepared to identify:

  1. the radiometric distortions, due to irregular lighting and noise coming from the circuit transmitting an image signal,

  2. the geometric distortion due to the optics and electronics.

Radiometric distortions are evaluated on the basis of the regular brightness assessment in the areas of white and black images. The white identifies the distortion caused by light scattering (Figure 4a), meanwhile the black image identifies the distortion caused by the camera transmission (Figure 4b). The correction of radiometric distortions is carried out by means of adding, subtracting, or multiplying the subsequent image records. In our study, the difference is only on one level (255–254 white image, 13–14 black image) (Figure 4a,b).

Figure 4 Distortion test: Radiometric: (a) a reference image “white,” (b) “black” scene image. Geometric: (c) black square patterns in 5 scale magnification (image 1–5, zoom 0.62–2.0)
Figure 4

Distortion test: Radiometric: (a) a reference image “white,” (b) “black” scene image. Geometric: (c) black square patterns in 5 scale magnification (image 1–5, zoom 0.62–2.0)

For geometric distortions identification, geometrical patterns of various shapes and sizes in the range of 1 to 3 [mm2] were prepared. They were made using the technique of exposure on plastic film, in the positive and negative (using laser printer with resolution 300 dpi). (Figure 4c). The accuracy of the dimensions of the individual patterns was examined on the Mitutoyo projector at a magnification of 10x. The calculated accuracy was 0.001 [mm]. Furthermore the lack of square patterns in 5 scale magnification (zoom 0.6 −2.0) were used for acquisition and structural analysis: size and proportion of every element. The percentage value of the difference in width and height to the height of the square pattern in the increasing size scale was assessed. The result is illustrated by a decreasing error with the scale increase from 1.22% to 1.12%. (Figure 4c and Table 3).

Table 3

Results of image analysis of black squares in 5 scales after the analysis in the author MagFABRIC software

Image/(zoom)Width [pix]Height [pix](Width-height) /height*100 [%]Area [pix]
1 (0.62)2482451.2259,580
2 (0.8)3183141.2797,918
3 (1.0)4084031.24160,940
4 (1.25)5075011.20248,440
5 (2.0)6306231.12384,208

2.4.2 Image quality improvement

The use of filters for image preprocessing may lead to improvement or deterioration of further quantitative image analysis. The filtering procedure based on spatial methods of image pixel conversion was carried out in the author's copyright MagFABRIC software. The methods verification was performed with the use of artificial images generated by computer [15] and real fabrics [25]. The correct execution of one or more filtering operations affects the segmentation, which means separating the objects from the background image.

In determining the optimal computer image preprocessing algorithm, the results of theoretical analysis from the artificially generated image, contained in the thesis [15] were taken into consideration. This experiment showed that for the noise elimination (artificially programmed “sand”), the following methods worked with positive results: stretching the brightness level of the histogram to the full range [0–255] or nonlinear filters: square (x2) and cubic (x3). These methods increase the image contrast and highlight the details of previously invisible bright elements and the images up to 40% disturbance, decreasing the error of further analysis to zero [15]. Despite the fact low-pass filters cause blurred edges, they improve the results by 1% in case of images with small noise—up to 20%. When images are more disturbing, additional operations improving image quality should be performed [15]. In this experiment the following preprocessing methods were used: nonlinear filtration methods and low-pass filtering—Gaussian filter and histogram stretching (Table 4).

Table 4

Juxtaposition of preprocessing methods, used to build algorithms for fabrics image analysis

Nonlinear filters (x2), (x3)Low-pass filters Gauss (dp G 3 × 3, dp G 5 × 5)Stretching the histogram brightness levels to the full range [0–255] (h [0–255])
g(i,j) = (fk(i,j))m

m = 2 or 3
g(i,j)=k=1nwk(i,j)fk(i,j)


dp G 3 × 3, sum = 16,

mask: (1, 2, 1, 2, 4, 2, 1, 2, 1)

dp G 5 × 5, sum = 76,

mask: (1, 2, 3, 2, 1, 2, 4, 5, 4, 1, 3, 5, 6, 5, 3, 2, 4, 5, 4, 2, 1, 2, 3, 2,1)
g(i,j)={0f(i,j)<fmin;LfmaxfminLf(i,j)>fmax;(f(i,j)fmin)fminf(i,j)fmax;}
where

fk(i, j)—value of kth pixel with coordinates (i, j) of the original image,

g(i, j)—value of the pixel coordinates (i, j) of the resultant image,

wk (i, j)—weave mask—the weight of the kth pixel environment
where

L—level of brightness

g(i, j)—value of the pixel with coordinates (i, j) of the resultant image,

f(i, j)—a value of a pixel with coordinates (i, j) of the original image,

fmax, fmin—the max or min value of brightness level L present in the image

2.5 Segmentation

The Segmentation process is a very important procedure in image processing. The process is aimed at extracting the objects from the image after the filtering process. Universal algorithms application can lead to errors such as the creation of borders in the wrong place where they are not present in reality. If we use the same threshold value for every image, we will not get adequate border ITP detection. This is because each image of the fabric may have a different level of brightness, even if we ensure constant lighting conditions. Taking into consideration other studies [1, 11, 19,20,21,22,23,24], the author designed an automatic algorithm of segmentation and used it in MagFABRIC software. The automatic algorithm was based on two methods: region splitting and region-growing. These were based on Gauss and Poisson distributions in the image of background p(x,y) and object f(x,y) (Figure 5). Thresholding value T was found from functions of:

(1)T=T(p(x,y),f(x,y))
Figure 5 The distribution of image probability density [5]
Figure 5

The distribution of image probability density [5]

Allow the image containing areas with brightness levels centered on two mean values: object and background, each with a Gaussian N(μ,σ) distribution. These areas occur in shares P1 and P2 with:

(2)P1+P2=1

Assume that p1(z) and p2(z) are the probability density of the normal distribution N(μ11), N(μ22), respectively:

(3)p1(z)=1σ12πe(zμ1)22σ12
(4)p2(z)=1σ22πe(zμ2)22σ22

where

p1(z)

—the image probability density belonging to the object and included in the background,

p2(z)

—image probability density belonging to the background and included in the object,

μ1, μ2

—expected values for the first and second distribution,

σ12 , σ22

—variance for the first and second distribution.

The final threshold value:

(5)t=(μ1+μ2)2+σ2(μ1μ2)lnP2P1

2.6 The morphological operations

In the segmentation process, it is necessary to improve the binary image which is crucial for further quantitative analysis. The morphological operations tested in this experiment:

(6)closing=1×dilatation+1×erosion:AB=(AB)B
(7)opening=1×erosion+1×dilatation:AB=(AB)B

where

(8)erosion:f(x,y)=minx1,y1b(x,y)(f(x1,y1)),structuralelement:(1,1,1,1,1,1,1,1,1,1)
(9)dilatation:f(x,y)=maxx1,y1b(x,y)(f(x1,y1)),structuralelement:(x,x,x,x,0,x,x,x,x,x)

Advantages of typical morphological operations include small details elimination and the figure edge smoothing, the division of adjoining areas (Figure 6b); closing of small holes and narrow bays, linking the adjoining areas (Figure 6c); filling the narrow indentations and holes, linking the objects in contact (Figure 6d); fine edgings and peninsulas removal and objects in contact disconnection (Figure 6e). Besides many advantages, there is a common disadvantage with these operations—the distortion of the object resulting from a reduction or enlargement. The opening and closing operations (Figure 6f) provide a good solution to that problem.

Figure 6 Morphological transformations in the copyright MagFABRIC software, typical: (a) segmentation, (b) erosion, (c) dilatation, (d) closing operation − dilation + erosion, (e) opening operation − erosion + dilation, and (f) opening and closing operation
Figure 6

Morphological transformations in the copyright MagFABRIC software, typical: (a) segmentation, (b) erosion, (c) dilatation, (d) closing operation − dilation + erosion, (e) opening operation − erosion + dilation, and (f) opening and closing operation

3 Experiment

The aim of the experiment is to determine the optimal preprocessing algorithm. The image is preprocessed according to various algorithms contained in Figure 8 and Table 5. Then ITP structural analysis: the size, shape, and position of ITP are performed in the identification and description stages. The algorithm selection criterion is the ITP detection in the image of the fabric and the identification of the boundary line in individual ITP. The ITP detection defined as a percentage of the ITP number identified by digital image analysis, compared to the actual ITP number in the fabric, using the number of warp and weft threads, acc. formula (10).

Table 5

Algorithms (a)–(u) tested in the experiment to obtain the optimal preprocessing algorithm.

SetPreprocessing methods
No.1.2. Image quality improvement3. Segmentation
Individual1. Distortions correction after acquisition(a) without;

(b) (h [0–255]);

(c) (x2);

(d) (x3);

(e) (dp G 3 × 3);

(f) (dp G 5 × 5);
Image negative3.1. Auto thresholding operation3.2 Morphological operation

closing = 1x dilatation+1x erosion

opening = 1x erosion + 1x dilatation
Dual:(g) (dp G 3 × 3) and (h [0–255]);

(h) (dp G 5 × 5) and (h [0–255]);

(i) (dp G 3 × 3) and (x2);

(j) (dp G 5 × 5) and (x2);

(k) (h [0–255]) and (dp G 3 × 3);

(l) (h [0–255]) and (dp G 5 × 5);

(m) (h [0–255]) and (x2);

(n) (h [0–255]) and (x3);
Triple:(o) (dp G 3 × 3) and (h [0–255]) and (x2);

(p) (dp G 3 × 3) and (h [0–255]), and (x3);

(r) (dp G 5 × 5) and (h [0–255]) and (x2);

(s) (dp G 5 × 5) and (h [0–255]) and (x3).
Extra(t) (dp G 3 × 3) and (h [0–255]) and (x2);closing = 1x dilatation + 2x erosion

opening = 1x erosion + 2x dilatation
(u) (dp G 3 × 3) and (h [0–255]) and (x2);closing = 2x dilatation + 2x erosion

opening = 2x erosion + 2x dilatation

ITP Detection [%]—percentage of the ITP detection in the image

(10)ITPdetectionITPna*(b1)*100,[%],

where

ITPn

—the number of every individual ITP in image, detected by software MagFABRIC,

a, b

—number of threads (a(warp) and b(weft)) in image.

The second criterion is the precision of ITP area boundary line detection which is assessed on the basis of the factor developed by the author defined as RID, acc. formula (11). The RID factor—allows for determining the smallest difference between the ITP real area and the ITP model area defined as AIDE. The AIDE area model is shown on Figure 7 and is calculated from the size, shape and ITP position parameters (acc. formula 12, 13).

Figure 7 Graphic visualization of the AIDE model
Figure 7

Graphic visualization of the AIDE model

RID—the difference between the real and model areas of the object.

(11)RID=AIDEA,[mm2],

where

A [mm2]

—ITP area—the sum of pixels in the ITP, converted to mm2

AIDE

—model of object area, calculated from average parameters of area, shape, and location

(12)AIDE=A(dx,dy),[pix]or[mm2],

where

(13)dx=A¯Feret1+tg2α1(1tgα1tgα2);dy=A¯(1+tg2α1)A¯Feret(1+tg2α1);
A¯

— average of ITP area

Feret

— ITP shape factor – the degree of object area extension, the ratio of height to the width of the ITP area: (0≤Feret<1) horizontal, (Feret≈1) square, (1<Feret<∞) vertical,

α1,α2

— ITP grid inclination angles,

tgα1,α2

— trigonometric tangent function of angles α1,α2.

FormF [–]

— shape factor of the ITP area folding

(14)FormF=4πAL2,[]

where

  • A [mm2] - ITP area, every individual ITP area,

  • L [mm2] - the circumference of every individual ITP,

  • (0≤ FormF <1) undulating ; (FormF≈1) not undulating .

The algorithm of the experiment procedure for extracting optimal algorithm of preprocessing is shown below (Figure 8 and Table 5).

Figure 8 Algorithm of experiment procedure to optimize the algorithm of preprocessing
Figure 8

Algorithm of experiment procedure to optimize the algorithm of preprocessing

4 Results and Discussion

The results of this experiment are presented in Table 6 and Figures 9 and 10. The experiment was carried out in two stages using two parameters proposed by the author: (1) ITP_ Detection [%] and (2) RID factor [mm2] (precision of designated ITP—a difference of the real and model areas of the ITP) and also the minimum value of size and shape of the ITP.

Table 6

The results of algorithm processing for P1_1.25: from (p-a) to (p-u) setting aq. to Table 5

Pre-processingDetection [%]CV_Detection [%]RID [mm2]s_RID [mm2]cV_RID [%]FormF[-]A [mm2]s_A [mm2]cV_A [%]S_A [mm2]
(a)86570.0540.035650.290.0650.037571.561
(b)100640.0370.028750.290.0520.033641.466
(c)100830.0220.021950.310.0360.030831.002
(d)82760.0200.019960.530.0340.026760.771
(e)79920.0560.034610.280.0480.044921.064
(f)79760.0430.030700.360.0550.042761.211
(g)89560.0540.031590.250.0580.033561.461
(h)96600.0440.030670.650.0560.033601.507
(i)100760.0290.024820.550.0400.031761.134
(j)96890.0210.019930.280.0310.027890.834
(k)93570.0510.032630.260.0600.034571.548
(l)96600.0440.030670.280.0560.033601.508
(m)96870.0190.0191020.330.0320.028870.857
(n)82800.0190.018930.320.0300.024800.695
(o)100850.0200.0201000.320.0340.029850.960
(p)82760.0190.019980.320.0340.026760.783
(r)100890.0200.019920.330.0320.029890.907
(s)86810.0200.020990.280.0310.025810.750
(t)100850.0200.0201000.320.0340.029850.960
(u)100840.0210.020990.350.0350.030840.980
Figure 9 The visualization of the boarding line chosen ITP in the image as the result of algorithm processing for plain weave: from (a) to (u) setting aq. to Table 4
Figure 9

The visualization of the boarding line chosen ITP in the image as the result of algorithm processing for plain weave: from (a) to (u) setting aq. to Table 4

Figure 10 The result of algorithm processing for fabrics P1, P2 from (a) to (u) setting aq. to Table 5, in two magnification 1.25 and 0.8: (a) ITP Detection [%]. (b) RID factor [rmm2]. (c) ITP A [mm2]. ITP FormF [-]
Figure 10

The result of algorithm processing for fabrics P1, P2 from (a) to (u) setting aq. to Table 5, in two magnification 1.25 and 0.8: (a) ITP Detection [%]. (b) RID factor [rmm2]. (c) ITP A [mm2]. ITP FormF [-]

In the first criterion—ITP Detection [%] and range [100–96%], better detection is obtained with photos with 1.25 zoom than with 0.8 zoom. With 0.8 zoom, there was no value for 100% detection for all algorithms and for 96% only for the algorithm (a), (b), (h), (k), (l). For fabric P1_1.25, it is difficult to analyze due to its irregular structure and invisible ITP, and in algorithms (b), (c), (i), (o), (r), (t), (u) 100% ITP detection was achieved. For P2_1.25 fabric which has a more regular structure and the condition [100–96%] is met by algorithms from (g) to (u).

In the second selection criterion—RID [mm2] and range minimum, the precision of ITP detection—the smallest value of the RID coefficient occurred in cases (o), (r), (t), (u). The ITP area in these cases is also the lowest, FormF coefficient. The visual effect of the ITP boundary line (Figure 9) and value of ITP area (Table 6 and Figure 10) in cases (b), and (i) indicate that the ITP area is too large (0.04–0.05 [mm]).

Figure 11 The image analysis of optimal algorithm of tested fabrics with plain weaves focus on the ITP: (a) the picture after the acquisition, (b) low-pass filtering 5 ′ 5 Gaussian filter, (c) histogram equalization to the full range h[0–255], (d) nonlinear filtration by square filter (x2), (e) image negative, (f) thresholding operation with auto threshold set by copyright procedure, (g) closing operation (1′ dilatation 1′ erosion), (h) opening operation (1′ erosion 1′ dilatation), and (i) ITP structural analysis.
Figure 11

The image analysis of optimal algorithm of tested fabrics with plain weaves focus on the ITP: (a) the picture after the acquisition, (b) low-pass filtering 5 ′ 5 Gaussian filter, (c) histogram equalization to the full range h[0–255], (d) nonlinear filtration by square filter (x2), (e) image negative, (f) thresholding operation with auto threshold set by copyright procedure, (g) closing operation (1′ dilatation 1′ erosion), (h) opening operation (1′ erosion 1′ dilatation), and (i) ITP structural analysis.

For the optimal preprocessing algorithm the case of (r) can be adopted due to the smallest values of RID, A, Σ_A and FormF. These results confirm the visual effect of the determination of the boundary line in individual ITP, which smoothly shapes the ITP, considering the hairiness of the threads. In other cases, (o), (t), (u), we see too much rippling of the boundary line, outlining a much larger ITP area. The visual assessment is compatible with quantitative results. Taking into account the results of the optimal preprocessing algorithm for plain weave fabric with variant (r) is presented in Figure 11. The optimal algorithm should be composed of low-pass filtering (dp G 5 × 5), histogram equalization to the full range h[0–255] and nonlinear filtration through a square filter (x2) and single morphological operations. The morphological operations allow the shoreline to be maintained according to the hairiness of the thread (single operations).

5 Conclusions

The aim of this article was to choose the optimal preprocessing algorithm for a fabric structure with a plain weave and present the most important problems related to the initial stage of the fabric computer image analysis. The implementation of the new optimal algorithm results from the new methodology of individual ITP examination.

At the stage of image acquisition, the following parameters were determined: the irregularity of the image of the fabric and the presence of radiometric and geometrical deformations by through developed methods. For the optimal algorithm, selection was determined by the author's criteria (ITP Detection and RID coefficient and minimum of size and shape of the ITP). The result of structural analysis of ITP with the prescribed parameters show convergence with the visual effect in the form of the ITP boundary line in the range of the individual ITP field.

This experiment represents a new approach to this type of analysis. It focuses on each individual ITP and the precision of determining the ITP boundary line, but not the general information about the area of all ITP. The limitation of this method may be the fabric structure with invisible ITP (e.g., for a satin weave). The validity of the problem is presented on the basis of tests of the air permeability of two structurally differentiated fabrics in relation to the value of structural parameters of ITP in the image of plain-woven fabric. The above issues are crucial when assessing the properties of structures that must be an effective barrier: air permeability; flow resistance; UV radiation; viruses penetration e.g. HIV, HBV, HCV; as well as specialized fabrics (e.g. industrial filters, composites and others). This article is an integral part of the research carried out in the area of morphometric analysis of a single ITP in the fabric structure [13].

  1. Funding

    This research received no specific grant from any funding agency or from the public, commercial, or nonprofit sectors.

References

[1] Kang, T. J., Choi, S. H., Kim, S. M. (2001). Automatic structure analysis and objective evaluation of woven fabric using image analysis. Textile Research Journal, 71(3), 261–270.10.1177/004051750107100312Suche in Google Scholar

[2] Zupin, Z., Hladnik, A., Dimitrovski, K. (2011). Prediction of one-liner woven fabric air permeability using porosity parameters. Textile Research Journal, 82(2), 117–128.10.1177/0040517511424529Suche in Google Scholar

[3] Turan, R. B., Okur, A. (2012). Investigation of pore parameters of woven fabrics by theoretical and image analysis methods. Journal of the Textile Institute, 103(8), 875–884.10.1080/00405000.2011.617057Suche in Google Scholar

[4] Polipowski, M., Wiecek, P., Wiecek, B., Pinar, A. (2017). Influence of selected parameters of the channels between threads on the air permeability of flat textile products with known characteristics. Fibres and Textiles in Eastern Europe, 25, 129–138.10.5604/01.3001.0010.1701Suche in Google Scholar

[5] Polipowski, M., Wiecek, P., Wiecek, B., Pinar, A. (2017). Analysis of the effect of channel parameters between filaments and single fabric parameters on air permeability. Water vapour resistance and thermal resistance. Fibres and Textiles in Eastern Europe, 25, 79–86.10.5604/01.3001.0010.4632Suche in Google Scholar

[6] Gooijer, H., Warmoeskerken, M. M. C. G., Groot Wassink, J. (2003). Flow resistance of textile materials. Part I: Monofilament fabrics. Textile Research Journal, 73(5), 437–443.10.1177/004051750307300511Suche in Google Scholar

[7] Swery, E. E., Allen, T., Kelly, P. (2016). Automated tool to determine geometric measurements of woven textile using digital image analysis techniques. Textile Research Journal, 86(6), 618–635.10.1177/0040517515595031Suche in Google Scholar

[8] Dulęba-Majek, M. (2009). Transmission of UV radiation through woven fabric in dependence on the inter-thread spaces. Fibres and Textiles in Eastern Europe, 17(2), 34–38.Suche in Google Scholar

[9] Dal, V., Atmaca, M., Yildiz, Z., Ceviz, N. O., Hes, L. (2016). Thermal comfort of woolen fabrics depending on physical properties. Journal of Natural Fibers, 13(6), 714–725.Suche in Google Scholar

[10] Dubrovski. P. D., Brezocnik, M. (2002). Using genetic programming to predict the macroporosity of woven cotton fabrics. Textile Research Journal, 72(3), 187–194.10.1177/004051750207200301Suche in Google Scholar

[11] Tàpias, M., Ralló, M., Escofet, J., Algaba, I., Riva, A. (2010). Objective measure of woven fabric's cover factor by image processing. Textile Research Journal, 80(1), 35–44.10.1177/0040517509104471Suche in Google Scholar

[12] Tapias, M., Rallo, M., Escofet, J. (2011). Automatic measurements of partial cover factors and yarn diameter in fabrics using image processing. Textile Research Journal, 81(2), 173–186.10.1177/0040517510380107Suche in Google Scholar

[13] Owczarek, M. (2019). Morphometrical structural analysis of inter-thread pores in woven fabrics with the use of computer image analysis. Textile Research Journal, 89(23–24), 4858–4874.10.1177/0040517519841372Suche in Google Scholar

[14] Ohta, K., Sakaue, K., Tamura, H. (1986). Pattern recognition of fabric surfaces. Journal of the Textile Machinery Society of Japan, 32(1), 7–10.10.4188/jte1955.32.7Suche in Google Scholar

[15] Owczarek, M., Masajtis, J. (2002, October/December). Influence of initial image preparation on the result of the image digital analysis. Fibres & Textiles in Eastern Europe, 10(4), 31–32.Suche in Google Scholar

[16] Windyga, P. S. (2001). Fast impulsive noise removal. IEEE Transactions on Image Processing, 10, 173–179.10.1109/83.892455Suche in Google Scholar PubMed

[17] Chang, C. C., Hsiao, J. Y., Hsieh, C. P. (2008). An adaptive median filter for image denoising. In: Second International Symposium on Intelligent Information Technology Application. Shanghai. China. 20–22 December 2008. Vol. 2, 346–350. Washington. DC: IEEE.10.1109/IITA.2008.259Suche in Google Scholar

[18] Ibrahim, H., Kong, N. S. P. (2007). Brightness preserving dynamic histogram equalization for image contrast enhancement. IEEE Transactions on Consumer Electronics, 53, 1752–1758.10.1109/TCE.2007.4429280Suche in Google Scholar

[19] Materka, A. (1991). Elements of digital image processing and analysis. Elementy cyfrowego przetwarzania i analizy obrazów. PWN Warszawa (Łódź). ISBN:83-01-10566-6 (in Polish).Suche in Google Scholar

[20] Tadeusiewicz, R., Korohoda, P. (1997). Computer image analysis and processing. Komputerowa analiza i przetwarzanie obrazów. FPT Kraków. ISBN:83-86476-15-X (in Polish).Suche in Google Scholar

[21] Bovik, A. (2000). Handbook of image & video processing. Academic Press (USA). ISBN:0-12-119790-5.Suche in Google Scholar

[22] Gonzalez, R. C., Wood, R. E. (2008). Digital image processing. Pearson Education (NJ). ISBN:0-13-168728-X.Suche in Google Scholar

[23] Sankowski, D., Mosorov, V., Strzecha, K. (2011). Processing and image analysis in industrial systems. Przetwarzanie i analiza obrazów w systemach przemysłowych. PWN. ISBN:978-83-01-16571-0 (in Polish).Suche in Google Scholar

Stąpor, K. (2011). Methods of objects classification in computer vision. Metody klasyfikacji obiektów w wizji komputerowej. PWN. ISBN:978-83-01-16581-9 (in Polish).Suche in Google Scholar

[25] Owczarek, M., Masajtis, J. (2006). Evaluation of the Jeans fabric structure homogeneity by means of digital image analysis. Fibres & Textiles in Eastern Europe, 14(2), 41–45.Suche in Google Scholar

[26] Kinoshita, M., Hashimoto, Y., Akiyama, R., Uchiyama, S. (1989). Determination of weave type in woven fabric by digital image processing. Journal of the Textile Machinery Society of Japan, 35(2), 1–4.10.4188/jte1955.35.2_1Suche in Google Scholar

[27] Kuo. F. J., Shih, Y., Huang, C., Su, T.-L., Liao, C. (2016). A novel image processing technology for recognizing the weave of fabrics. Text Research Journal, 86(3), 288–301.10.1177/0040517514549982Suche in Google Scholar

Published Online: 2020-09-18

© 2020 Magdalena Owczarek, published by Sciendo

This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Heruntergeladen am 21.9.2025 von https://www.degruyterbrill.com/document/doi/10.2478/aut-2020-0023/html
Button zum nach oben scrollen