원시데이터 수집 시스템
선정목록으로

Moiré pattern-based stripe density measurement using low-frequency component detection

간접 관련 패션 · (24) 패션(코오롱FnC) (17) 스펀본드 부직포

기본 정보

저자
  1. Pongsak Khokhuntod — Department of Physics, Faculty of Science, Naresuan University, Phitsanulok, Thailand
  2. Anucha Kaewpoonsuk — Department of Physics, Faculty of Science, Naresuan University, Phitsanulok, Thailand
DOI
10.1109/access.2025.3566459
저널
IEEE Access
발행년도
2025
발행기관
Institute of Electrical and Electronics Engineers
피인용수
1
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2025.3566459
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W4410027451

평가 내용

관련도
간접 관련
사업분야
패션 · (24) 패션(코오롱FnC)
부 분야
(17) 스펀본드 부직포
R&D 측면
물성·성능 평가
확신도
0.80
근거 용어
stripe density measurement, textile threads, yarn counting, woven fabrics, fabric images
판단 근거
이 논문은 모아레 패턴과 이미지 프로세싱을 이용해 섬유(textile)의 실 밀도(yarn density)를 정밀하게 측정하는 기술을 다루고 있습니다. 이는 코오롱인더스트리의 산업용 섬유 및 부직포 제조 공정에서 품질 관리(QC)를 위한 자동화된 검사 기술로 응용될 수 있습니다.
R&D 활용 포인트
섬유, 부직포, 타이어코드 등 고밀도 원단의 제조 공정에서 실의 밀도나 조직의 균일성을 실시간으로 자동 검사하는 비파괴 품질 관리 시스템 구축에 활용 가능합니다.
평가 입력
본문 69,686자 중 30,032자 발췌

초록

This article presents the measurement of stripe density using image processing. The two essential techniques are a digital grid overlay on the target image to create a moiré pattern and a moving average filter to remove the high-frequency components of the moiré pattern image. The moving average filter produces a low-frequency signal whose frequency is equal to the difference between the frequency (density) of the target stripes image and the frequency of the overlaid grid stripes. We use a method where grid lines are drawn with a lower density on the left side and progressively increase in density towards the right, surpassing the target stripe density. When superimposed on the target image, if the frequency of the grid stripes matches the frequency of the target stripes, the moving average filter will produce an output signal with a frequency equal to zero. An automatic stripe density measurement system is achieved by detecting situations where the frequency value of the output signal from the moving average filter equals zero. The results of measuring the density of simulated stripes created with the program for densities ranging from 30-180 per unit length (L−1) and the number of threads of the fabric on six images showed that the system could measure the actual values consistently, with an error of less than ±1 L−1.

본문 69,686자

본문 펼치기
Received 11 March 2025, accepted 20 April 2025, date of publication 2 May 2025, date of current version 12 May 2025. _Digital Object Identifier 10.1109/ACCESS.2025.3566459_ # Moiré Pattern-Based Stripe Density Measurement Using Low-Frequency Component Detection PONGSAK KHOKHUNTOD AND ANUCHA KAEWPOONSUK Department of Physics, Faculty of Science, Naresuan University, Phitsanulok 65000, Thailand Corresponding author: Anucha Kaewpoonsuk (anuchak@nu.ac.th) This work was supported in part by the Fundamental Fund of Naresuan University under grant number R2566B010. ABSTRACT This article presents the measurement of stripe density using image processing. The two essential techniques are a digital grid overlay on the target image to create a moiré pattern and a moving average filter to remove the high-frequency components of the moiré pattern image. The moving average filter produces a low-frequency signal whose frequency is equal to the difference between the frequency (density) of the target stripes image and the frequency of the overlaid grid stripes. We use a method where grid lines are drawn with a lower density on the left side and progressively increase in density towards the right, surpassing the target stripe density. When superimposed on the target image, if the frequency of the grid stripes matches the frequency of the target stripes, the moving average filter will produce an output signal with a frequency equal to zero. An automatic stripe density measurement system is achieved by detecting situations where the frequency value of the output signal from the moving average filter equals zero. The results of measuring the density of simulated stripes created with the program for densities ranging from 30-180 per unit length (L <sup>−1</sup> ) and the number of threads of the fabric on six images showed that the system could measure the actual values consistently, with an error of less than ±1 L <sup>−1</sup> . INDEX TERMS Stripe density measurement, Moiré pattern, moving average filter, low-pass filter, frequency measurement, image processing. I. INTRODUCTION The measurement of stripe density on material surfaces, such as gratings, encoders, and textile threads, can be categorized into two primary methods: direct counting and indirect counting. Direct counting involves manually counting the number of stripes within a unit length, typically using magnifying tools. However, this approach faces limitations due to the number and size of stripes that a person can effectively count, as high stripe densities may cause eye fatigue and errors. Additionally, manual counting is highly operator-dependent, leading to inconsistencies in measurement results based on experience, concentration, and external conditions [1]. Consequently, indirect counting has emerged as a practical alternative, utilizing specialized tools to enhance accuracy and efficiency. One widely used indirect counting method, based on the Moiré effect [2], The associate editor coordinating the review of this manuscript and approving it for publication was Chao Zuo . determines stripe density by placing a translucent grating sheet with opaque lines of varying density over the target surface. This setup produces a pattern of alternating opaque and translucent curved stripes across most areas, with a straight line forming where the grating density matches the target surface density. Users can then read or estimate values from the scale at the line’s edge. Although this method simplifies the process, it still depends on human interpretation for accurate results. Other high-accuracy indirect measurement techniques employ optical measurement instruments combined with computer systems [3], offering enhanced precision but often constrained by high costs and complex setup requirements. Currently, computer technology, both hardware and software, has advanced significantly, with prices decreasing relative to the increased capability and speed of signal processing. As a result, various measurement and intelligent systems now commonly use computers for signal processing, including the measurement of stripe pattern density. Existing methods for measuring stripe density can be divided into the following subgroups. The first group uses the technique of measuring the distance between adjacent stripes (by counting pixels) in the target image and then converting it to a frequency value [1], [4], [5], [6]. This approach offers simplicity and speed; however, if the spacing between stripes in the target image is inconsistent, calculating the density based on these measurements can result in significant errors. The second group relies on counting the number of stripe patterns within a fixed distance, resulting in a direct measurement of stripe density [7], [8]. The advantage of this method is that it averages over the specified distance, which helps reduce errors caused by the positional variation of individual stripe pairs. However, this method has limitations: if the stripes are highly dense or the image resolution is low, measurement errors may occur. The third group employs Fourier Transform techniques to analyze the frequency components of the signal directly [9], [10], [11], [12], [13]. Additionally, there are other interesting techniques, such as sampling the image signal combined with Fourier Transform techniques [14], [15], and utilizing the Moiré phenomenon in combination with intensity level summation in each image column, where the column with the highest summed intensity corresponds to the frequency position of the stripe patterns in the image [16]. One of the key parameters affecting the accuracy of each method is the resolution of the target surface image. Comparing the performance of different approaches is challenging due to variations in image resolution used in each study. Additionally, the sample images tested in different papers are not identical, making direct comparisons more complex. Nevertheless, reported experimental results provide some insights into their relative accuracy. In [14], the difference between the nominal grid strip density and the measured values is less than 1.8%. In [15], the discrepancy between the nominal grid strip density and the measured values is below 0.2% for simulation-based results and 1.8% for experimental results. In [16], the maximum relative error is 0.4% for plain weave fabric and 0.75% for twill fabric. It is well known that the frequency of the Moiré pattern (Moiré frequency) equals the difference in frequency between the target image and the overlaid stripe grid, as analyzed in several papers [2], [16], [17], [18], [19], [20], [21]. In addition to its application in yarn counting for woven fabrics [2], [16], as mentioned earlier, recent research has explored various applications of this phenomenon, including its use in rotational axis angle measurement [22], wheel and rail surface inspection [23], wafer bonding alignment detection [24], and Moiré pattern detection in digital photos [25], [26]. Moreover, recent analyses have demonstrated that when a Moiré pattern, created by the superimposition of parallel binary grids, undergoes appropriate low-pass filtering, it produces a unique signal. Notably, this filtering process reveals a distinct relationship between the Moiré pattern characteristics and the underlying grid parameters, where the signal’s frequency, magnitude, and shape are determined by FIGURE 1. Stripes and logic signals ( _Qs_ and _Qv_ ): (a) The strips to be counted; (b) The Computer-generated grid strips. the frequency, duty cycle, and initial angle of the two overlaid stripe grids [27]. These insights further enhance the potential of Moiré-based techniques in various precision measurement applications. This study aims to develop an automated stripe density measurement method utilizing moiré-based signal processing and low-frequency component extraction. The proposed approach employs a moving average filter to remove high-frequency components and a Savitzky-Golay filter for signal smoothing, ensuring precise stripe density detection. By eliminating reliance on human interpretation, this method enhances accuracy, repeatability, and computational efficiency. The findings of this research will contribute to advancing automated quality control in textile production, optical metrology, and material characterization, providing a robust solution for high-precision stripe density measurement in various industrial applications. Following this introduction, Section II covers theories and principles related to overlaying parallel binary stripe patterns. Section III details the proposed methodology, Section IV presents the experimental results, and Section V discusses these findings. Finally, Section VI concludes the study. II. PRINCIPLES OF OVERLAPPING LINES ON A COMPUTER SCREEN _A._ _DEFINITION OF RELATED TERMS_ Fig. 1 shows an example of two sets of stripes used to represent the stripes to be counted (Fig. 1(a)) and the computer-generated grid stripes (Fig. 1(b)), respectively. We have considered the two stripes to have the properties of ideal binary stripes; that is, each pixel is assumed to have only two possible logic states: logic ‘‘1’’ and logic ‘‘0.’’ From Fig. 1 in this paper, various variables are defined as follows. _fs_ is the frequency (density) value of the strips to be counted (per length unit; L <sup>−1</sup> ). _fv_ is the grid’s frequency (density) value created by the computer program (L <sup>−1</sup> ). _Ts_ = 1 _/fs_ is the strip period that needs to be counted (length unit; L). _Tv_ = 1 _/fv_ is the period of the grid created by the computer program (L). _δs_ = _Ts_ 1 _/Ts_ is the duty cycle value of the strips to be counted. _δv_ = _Tv_ 1 _/Tv_ is the duty cycle value of the grid created by the computer program. _Ts_ 1 is the distance range in which the strip to be counted has a logic state of ‘‘1’’ (L). _Tv_ 1 is the distance range in which the grid created by the computer program has a logic state of ‘‘1’’ (L). _Note:_ In this study, we have not yet calibrated the image length to match the actual physical length of the object in the original image. Instead, we focused on frequency measurement techniques based on low-frequency signal detection. Therefore, we define the stripe period in terms of a length unit. In considering the initial phase value of the stripes, the starting position on the left-hand side of the white stripe of the stripes to be measured is set as the reference position. This reference position will have an initial phase value equal to zero. The initial position of the white stripes of the created (previously formed) grid strip is the position of the initial phase ( _φ_ 0), which is the phase difference between the two stripes. The generated grid stripes, including those to be counted, are adjusted to black and white to have a logic state of ‘‘0’’ or ‘‘1’’, which can be compared to a rectangular logic signal with a magnitude equal to 1. Based on the definitions of the above variables, the signal used to represent the stripes to be counted ( _Qs_ ) and the signal used to represent the generated stripes ( _Qv_ ) are in the form of Fourier series distributions, respectively, which can be written as follows [27], [28]: is usually understood as the moment the signal is a logic ‘‘1.’’ However, the computer sees that black pixels on the screen have a gray level value of 0, whereas white pixels have a gray level value of 255. When we normalize the gray level value of each pixel to have a maximum value equal to 1, white will have a logic state of ‘‘1’’, and black will have a state of logic ‘‘0.’’ Therefore, the visible image resulting from the overlap between the stripes to be measured and the generated stripes can be considered the result of the NOR operation of two logic signals ( _Q_ NOR). This relationship can be expressed logically as shown in (4). _QNOR_ = _Qs_ NOR _Qv_ = 1 − ( _Qs_ OR _Qv_ ) (4) From (4), in the case where _Qs_ and _Qv_ have values according to (1) and (3), respectively, this equation is equivalent to the algebraic operator given in the equation from [29]. _QNOR_ = 1 − ( _Qs_ + _Qv_ - _QsQv_ ) = 1 − _Qs_ - _Qv_ + _QsQv_ ) (5) Khokhuntod & Kaewpoonsuk [27] recently presented their analysis by substituting (1) and (3) into (5). They proposed using a low-pass filter to eliminate the high-frequency component of the signal. The analysis results show that the low-frequency signal obtained through frequency filtering has a magnitude, shape, and frequency that depend on the two input signals’ frequency value, duty cycle, and initial phase values. In the case where _fs_ = _fv_, we get <u>1 −</u> _δs_ - <sup>|</sup> <sup>_φ_</sup> <sup><u>0|</u></sup> ; 2 4 _π_ <sup>+</sup> <sup>|</sup> <sup>_φ_</sup> <sup><u>0</u></sup> <sup>−</sup> <sup><u>2</u></sup> 4 <sup>_πδ_</sup> _π_ <sup>_<u>s</u>_</sup> <sup>+ 2</sup> <sup>_π_</sup> <sup>|</sup> (− _π_ ) _< φ_ 0 _<_ (− _π_ + 2 _πδs_ ) <u>1 −</u> _δs_ - <sup>|</sup> <sup>_φ_</sup> <sup><u>0|</u></sup> ; 2 4 _π_ <sup>+</sup> <sup>|</sup> <sup>_φ_</sup> <sup><u>0</u></sup> <sup>−</sup> 4 _π_ <sup><u>2</u></sup> <sup>_πδs_</sup> <sup>|</sup> (− _π_ + 2 _πδs_ ) _< φ_ 0 _< π_ _Qs_ = _δs_ + <sup><u>1</u></sup> _π_ ∞ _n_ =1 - −1 _n_ <sup>sin</sup> <sup>_n_</sup> <sup>(</sup> <sup>_ωsx_</sup> <sup>−</sup> <sup>2</sup> <sup>_πδs_</sup> <sup>)</sup>    (1) _Q_ NOR( _L_ ) = + <sup><u>1</u></sup> _π_ ∞ _n_ =1 - <u>1</u> _n_ <sup>sin</sup> <sup>_n_</sup> <sup>(</sup> <sup>_ωsx_</sup> <sup>)</sup> _Qv_ = _δv_ + <sup><u>1</u></sup> _π_ ∞ _n_ =1 - −1 _n_ <sup>sin</sup> <sup>_n_</sup> <sup>(</sup> <sup>_ωvx_</sup> <sup>−</sup> <sup>2</sup> <sup>_πδv_</sup> <sup>+</sup> <sup>_φ_</sup> <sup>0)</sup> In the case where _fs_ ̸ = _fv_ will be ; 2 <u>1 −</u> _δs_ - <sup>|</sup> <sup>_<u>x/Tm</u>_</sup> <sup>|</sup> 2 2 ((− _Tm/_ 2) + _δsTm_ ) _< x_ _<_ ( _Tm/_ 2) <sup>_<u>Tm</u>_</sup> <sup>|</sup> + <sup>|(</sup> <sup>_<u>x/Tm</u>_</sup> <sup><u>) −</u></sup> <sup>_δs_</sup> <sup>+ 1|</sup> 2 2 (6) (7) (2) _Q_ NOR( _L_ ) = + <sup><u>1</u></sup> _π_ ∞ _n_ =1 - <u>1</u> _n_ <sup>sin</sup> <sup>_n_</sup> <sup>(</sup> <sup>_ωvx_</sup> <sup>+</sup> <sup>_φ_</sup> <sup>0)</sup>    (− _Tm/_ 2) _< x_ _<_ ((− _Tm/_ 2) + _δsTm_ ) <u>1 −</u> _δs_ - <sup>|</sup> <sup>_<u>x/Tm</u>_</sup> <sup>|</sup> + <sup>|(</sup> <sup>_<u>x/Tm</u>_</sup> <sup><u>) −</u></sup> <sup>_δs_</sup> <sup>|</sup> ; 2 2 2 <sup>_<u>Tm</u>_</sup> <sup>|</sup> + <sup>|(</sup> <sup>_<u>x/Tm</u>_</sup> <sup><u>) −</u></sup> <sup>_δs_</sup> <sup>|</sup> 2 2 where _ωs_ = 2 _πfs_ is the angular frequency of the signal _Qs_, _ωv_ = 2 _πfv_ is the angular frequency of the signal _Qv_, and _x_ is the considered position. Based on (2) for creating digital grid stripes, we set _δv_ = 0 _._ 5, which can be rewritten as follows: where _Tm_ = <sup><u>1</u></sup> _fm_ ; 2 <u>1</u> _<u>TsTv</u>_ = | _fs_ - _fv_ | <sup>=</sup> | _Ts_ - _Tv_ | (8) _Qv_ = <sup><u>1</u></sup> 2 <sup>+</sup> _π_ <sup><u>1</u></sup> ∞ _n_ =1 - −1 _n_ <sup>sin</sup> <sup>_n_</sup> <sup>(</sup> <sup>_ωvx_</sup> <sup>−</sup> <sup>_π_</sup> <sup>+</sup> <sup>_φ_</sup> <sup>0)</sup> Equation (6) shows that in the case where _fs_ = _fv_, the _Q_ NOR( _L_ ) signal is characterized as a constant that depends on the values _δs_ and _φ_ 0. However, if the _φ_ 0 value is varied by setting the value of _δs_ to three cases, the first case being _δs_ _<_ 0 _._ 5, the second case _δs_ _>_ 0 _._ 5, and the third case _δs_ = 0 _._ 5: In the case where _δs_ _<_ 0 _._ 5, the signal will have maximum and minimum values equal to 0 _._ 5 and 0 _._ 5 - _δs_, respectively. For the second case, where _δs_ _>_ 0 _._ 5, the signal will have maximum and minimum values equal to + <sup><u>1</u></sup> _π_ ∞ _n_ =1 - <u>1</u> _n_ <sup>sin</sup> <sup>_n_</sup> <sup>(</sup> <sup>_ωvx_</sup> <sup>+</sup> <sup>_φ_</sup> <sup>0)</sup> (3) _B._ _OVERLAPPING OF TWO SETS OF STRIPES_ If the background of the display window on the computer screen is any color other than black, a black line on the screen FIGURE 2. The _Q_ NOR( _L_ ) signal where <sup>�</sup> _f_ = | _fs_ − _fv_ | = 0 (with _δ_ _v_ = 0 _._ 5): (a) _δ_ _s_ = 0 _._ 3; (b) _δ_ _s_ = 0 _._ 5; (c) _δ_ _s_ = 0 _._ 7. FIGURE 3. The maximum ( _Q_ NOR( _L_ )(Max)), minimum ( _Q_ NOR( _L_ )(Min)), and mean ( _Q_ NOR( _L_ )(Mean)) of signal _Q_ NOR( _L_ ). 1 _._ 0 - _δs_ and 0, respectively. In the third case, where _δs_ = 0 _._ 5, the signal will have maximum and minimum values of 0 _._ 5 and 0, respectively. Fig. 2 shows an example of the plotted graph based on (6) for the cases where _δs_ = 0 _._ 3 _,_ 0 _._ 5, and 0.7. Both the magnitude and shape of the _Q_ NOR( _L_ ) signal vary. Specifically, when _δs_ = 0 _._ 5, the _Q_ NOR( _L_ ) signal takes on a triangular shape and has the largest magnitude compared to other _δs_ values. From (6), when the maximum ( _Q_ NOR( _L_ )(Max)) and minimum ( _Q_ NOR( _L_ )(Min)) values of the _Q_ NOR( _L_ ) signal are plotted against _δs_, the relationship is shown in Fig. 3. The _Q_ NOR( _L_ )(Mean), defined as the midpoint between _Q_ NOR( _L_ )(Max) and _Q_ NOR( _L_ )(Min), decreases as _δs_ increases. Equations (7) and (8) indicate that in the case of _fs_ ̸ = _fv_, the signal _Q_ NOR( _L_ ) will have a frequency value ( _fm_ ) that is equal to the frequency difference between _fs_ and _fv_, with the shape of the signal depending on the value _δs_ . Fig. 4 shows an example of graph plotting according to (7) and (8), where _�f_ = | _fs_ - _fv_ | = 3 L <sup>−1</sup> and _δs_ = 0.3, 0.5, and 0.7. In the case of _δs_ = 0.3, the maximum and minimum values of the signal will be 0.5 and 0.5 - 0.3 = 0.2, respectively. In the case of _δs_ = 0.7, the maximum and minimum values obtained of the signal are 1 - 0.7 = 0.3 and 0, respectively. Similarly, in the case where _fs_ = _fv_, it is found that when _δs_ = 0.5, the _Q_ NOR( _L_ ) signal forms a triangular shape when plotted against the distance (L). The _Q_ NOR( _L_ ) signal reaches a maximum value of 0.5 and a minimum value of 0, respectively. III. METHODS The overall process of measuring the stripe pattern density using the proposed method is outlined in Fig. 5. The process begins with loading the target image, followed by image preparation, which includes necessary preprocessing steps such as adaptive thresholding and intensity averaging to enhance the contrast of the stripe patterns. Next, a grid overlay is generated on the computer screen, aligning with the target stripe pattern to facilitate moiré pattern formation. The system then extracts the low-frequency components from the moiré pattern, followed by frequency counting of the processed signal. Finally, the stripe density is computed based on the detected frequency. For checkerboard fabric cases, an additional preprocessing step is required before adaptive thresholding. Since the checkerboard pattern consists of alternating stripes with varying intensity, the user must first select the region of interest where stripe patterns are clearly visible. This ensures that the measurement focuses only on relevant areas, avoiding potential interference from alternating colors. After defining the desired region, adaptive thresholding and intensity averaging are applied to process the image, making it suitable for subsequent analysis. _A._ _DESIGNING PROGRAM WINDOWS_ Fig. 6 shows the program window created for studying and testing the system for measuring the density (frequency) of stripe patterns on the target image. This window consists of four sub-display windows. The first window is used for displaying the overlap between the target stripe pattern image and the grid stripe pattern generated by the computer program, which is designed to display the stripe patterns horizontally. The display window in the first section is set to a resolution of 600 pixels horizontally and 800 pixels vertically. When the load image button is pressed, the program will adjust the image size to fit the dimensions of the prepared window. At the top of the first display window, there is a frequency sliding bar for navigating to the desired column position. The selected column position is displayed in the text box labeled H_m (variable name _hm_ ), and another text box labeled F_m (variable name _fm_ ) is used to display the frequency reading from the first display window (at the selected column position). FIGURE 4. The _Q_ NOR( _L_ ) signal where <sup>�</sup> _f_ = | _fs_ − _fv_ | = 3 ( _δ_ _v_ = 0 _._ 5): (a) _δ_ _s_ = 0 _._ 3; (b) _δ_ _s_ = 0 _._ 5; (c) _δ_ _s_ = 0 _._ 7. command buttons for displaying the _Q_ sq (Sig-to-sq), clearing values and signal display, counting the signal frequency, and a text box for showing the frequency count result of the _Q_ sq signal. The fourth sub-window displays the measurement results of the _Q_ NOR( _L_ ) signal frequency for each column (from the first sub-window) after utilizing the automatic detection feature (‘‘Auto’’ button). At the top of this window, a frequency sliding bar allows users to read the frequency value at the position where the _Q_ NOR( _L_ ) signal reaches zero frequency. Users can adjust this bar manually or allow the program to position it automatically by activating the automatic detection feature (‘‘Auto’’ button). FIGURE 5. Flowchart of the process. The second sub-window (with a resolution of 800 × 256 pixels) is used to display the _Q_ NOR( _L_ ) signal, which is the result of the process of extracting the low-frequency component of the moiré image of the _Q_ NOR signal from the first display window at the selected column (using the frequency sliding bar). The display scale in the second window is set with a minimum value of 0 (when the _Q_ NOR image is black) and a maximum value of 255 (when the image is white), respectively. At the top of the second display window, there is a text box for users to input the data count ( _N_ ), which is used as a parameter for the low-pass filter in the moving average filter. Additionally, there are buttons for applying the frequency filtering command and clearing the values and signal display. Next to the second display window, there is also a sliding bar for setting the reference signal level ( _Q_ ref) to convert the _Q_ NOR( _L_ ) signal into a square wave signal ( _Q_ sq). The third sub-window is used for displaying the _Q_ sq signal to aid in deciding the appropriate _Q_ ref value. For proper functionality, the _Q_ sq signal must have the same frequency as the _Q_ NOR( _L_ ) signal. Next to this sub-window, there are _B._ _SPECIAL TOOLS FOR IMAGE PREPARATION_ To obtain an image that is suitable and sufficiently clean for processing under this study, tools for adjusting the condition of the target stripe pattern image have been prepared as follows: 1) The ‘‘Adaptive Threshold’’ button [30], which converts the original image to a black-and-white image. Under this command, the image is first converted to a grayscale image based on the Gaussian distribution principle, allowing users to specify the block size (the area around the pixel used for calculating the threshold) and the constant C (the value subtracted from the calculated threshold) for processing. This process results in a grayscale image with a smooth intensity gradient. The image is then converted to black-and-white to produce a binary signal image. 2) The ‘‘Average’’ button, which applies two-axis frequency filtering by calculating the average of the area surrounding the point of interest. This command is used for removing image noise and is designed to allow users to choose the number of pixels in both horizontal and vertical directions for filtering. 3) A cropping tool, which is used for extracting the image within the range of columns X1 to X2 and expanding it to fill the first display window for further processing. _C._ _CREATING GRID LINES ON THE COMPUTER SCREEN_ Creating grid lines on the computer screen, which are drawn horizontally in the first sub-window, serves two main purposes: 1) to overlay on the target image to produce moiré FIGURE 6. Graphical User Interface (GUI) of the Program with labeled components. The interface consists of four main display windows: (1) main image display, (2) low-pass filtered signal, (3) _Q_ NOR( _L_ ) to square wave conversion, and (4) frequency visualization. Key controls include: (1) Load image: Import and clear images; (2) Convert to Binary: Adaptive thresholding, intensity averaging, and region selection for checkerboard patterns; (3) Creating grid lines: Defines stripe frequencies ( _fL_, _fR_ ) and overlays grid lines; (4) Low-Pass Filter: Applies a moving average filter for frequency extraction; (5) Setting _Q_ ref and Counting frequency: Adjusts reference levels, converts signals, and counts frequencies; (6) Auto detect: Automatically identifies the dominant stripe frequency. patterns or 2) to prepare an idealized sample image for measurement. In both types of grid creation, each point’s position is defined in the horizontal and vertical axes using the variables _h_ and _v_, respectively. Here, _h_ 0 and _hmax_ represent the minimum and maximum positions on the horizontal axis, whereas _v_ 0 and _vmax_ represent the minimum and maximum positions on the vertical axis (as shown in Fig. 7). The design includes input fields for users to enter the duty cycle value and the number of stripe patterns to be created on the display window. The variables _fL_ and _fR_ denote the number of stripe patterns at the left and right edges of the display window, respectively, whereas ‘‘Duty Cycle’’ represents the duty cycle of the stripe pattern. If _fL_ and _fR_ are entered with different values ( _fL_ _<_ _fR_ ), the frequency (density) of the grid stripe pattern created will increase from the left side to the right side. As explained in Section III-A, the frequency reading in each column of the first sub-window can be performed by moving the frequency sliding bar to the desired column (H_m value). The program calculates the frequency corresponding to that column using (9) as follows. _fm_ = ( _fL_ × _fR_ ) _/_ ((( _fL_ - _fR_ ) × _hm/hmax_ ) + _fR_ ) (9) where the value _fm_ is displayed at the top of the first subwindow. Fig. 7(a) illustrates the first display window when _fL_ = _fR_, resulting in equal stripe patterns on both sides. Adjusting the frequency sliding bar yields _Fm_ = _fL_ (or _fR_ ). Fig. 7(b) shows the case where _fL_ = _fR_, creating more stripes on the right. Moving the frequency sliding bar updates F_m based on (9). The difference between grid lines used for moiré pattern generation and those for ideal target images lies in resolution. For actual stripe patterns, no modification is needed (600 × 800 pixels). However, for simulated patterns, the resolution is increased tenfold (6000 × 8000 pixels) to study the low-pass filter properties in Section III-D. After processing, the resolution is reduced for display. Fig. 8 presents moiré pattern images and low-frequency component extraction results. Fig. 8(a) shows the original image without resolution enhancement, where the low-frequency component is clipped due to low resolution. Fig. 8(b) displays the enhanced resolution result, aligning with the analysis in Section II-B and prior studies [27]. Fig. 8(c) demonstrates the case where _fL_ ̸ = _fR_ with resolution enhancement, producing a moiré pattern count of 3, similar to Figs. 8(a) and 8(b). Fig. 9 shows moiré pattern images for a target stripe pattern loaded for processing without resolution enhancement. Fig. 9(a) presents the original image, while Fig. 9(b) shows its black-and-white conversion. Figs. 9(c) and 9(d) depict the results of overlaying grid lines with constant and variable frequencies, respectively. The extracted low-frequency signals (bottom of Figs. 9(c) and 9(d)) resemble sinusoidal signals, and the program successfully detects and counts their frequency values. _D._ _EXTRACTING THE LOW-FREQUENCY COMPONENT OF_ _THE MOIRÉ IMAGE_ Under this command (the Filter Lowpass button), the high-frequency components of the moiré pattern (from the first window) are removed. The operation is performed on the image at the column position (variable _hm_ ) selected by the frequency sliding bar. The variables _Q_ NOR and _Q_ NOR( _L_ ) FIGURE 7. Illustration of the first sub-window under different frequency conditions. After entering values for _fL_ _,_ _fR_ _,_ and duty cycle, and pressing the ‘‘Plot’’ button, two cases are observed: (a) When _fL_ = _fR_, the generated stripe pattern serves two functions: (1) as a simulated fabric pattern and (2) as an overlay (or revealing) grid that can be superimposed on either a simulated or real fabric pattern, as seen in Figures 8(b) and 9(c), respectively. (b) When _fL_ ̸ = _fR_, the generated overlay grid functions similarly to (a), but a Moiré pattern emerges, resembling Figures 8(c) and 9(d), respectively. FIGURE 8. The First and Second Sub-Windows: Processing with and without Resolution scaling; (a) Without resolution scaling, _fL_ = _fR_ ; (b) With 10x resolution scaling, _fL_ = _fR_ ; (c) With 10x resolution scaling, _fL_ ̸ = _fR_ . represent the signal from the moiré pattern image and the signal obtained from this process, respectively. This command consists of two sub-processes: 1) low-pass filtering using a moving average filter and 2) trendline extraction using the Savitzky-Golay filter [31]. For the first process, when the user inputs the value _N_, the program loops from position ( _hm, v_ 0) to ( _hm, v_ max) step by step. At each position ( _hm, vn_ ), the values of _Q_ NOR from ( _hm, vn_ - _N_ ) to ( _hm, vn_ + _N_ ) are averaged and used as a representative for the data at position ( _hm, vn_ ), as shown in Fig. 10(a). In the case where _n_ + _N_ - max, the values of _Q_ NOR from ( _hm, v_ 0) to ( _hm, vn_ + _N_ −max) are averaged as a substitute, as shown in Fig. 10(b). In the case where _n_ - _N_ < 0, the values of _Q_ NOR from ( _hm, vn_ - _N_ +max) to ( _hm, v_ max) are averaged as a substitute, as shown in Fig. 10(c). After the low-pass filtering using the moving average filter, the program processes the obtained data to enhance FIGURE 9. Examples of image loading, preparation, and overlay drawing in two forms: (a) the original target image; (b) the image obtained by pressing the ‘‘Adaptive Threshold’’ button; (c) the image with a fixed-frequency grid overlay, and (d) the image with a variable-frequency grid overlay. smoothness (reduce ripple) using the Savitzky-Golay filter. The selection of window size (ws = 101) and polynomial order (order = 3) was determined empirically to balance noise reduction and feature preservation. Smaller windows (e.g., ws = 51) retained fine details but left residual noise, while larger windows (e.g., ws = 151) excessively smoothed the signal, removing essential low-frequency information. Similarly, a polynomial order of 2 failed to capture necessary curvature, whereas 4 introduced oscillations. The chosen parameters ensure that the filtered signal _Q_ NOR( _L_ ) remains smooth yet accurate for stripe density measurement. The moving average filter was chosen over wavelet transforms due to its simplicity, computational efficiency, and effectiveness in extracting low-frequency components of the _Q_ NOR( _L_ ) signal. While wavelet transforms offer multi-resolution analysis and better adaptability for transient frequency changes, they require significantly higher computational resources. In contrast, the moving average filter provides smooth signal transitions without phase distortion, making it ideal for moiré-based stripe density measurement. Experimental results confirm that an appropriate window size effectively reduces high-frequency noise while preserving essential lowfrequency information. Given its efficiency and suitability for real-time applications, the moving average filter was selected as the optimal method for this study. _E._ _COUNTING THE FREQUENCY OF THE QNOR_ ( _L_ ) _SIGNAL_ The process of measuring the frequency of the _Q_ NOR( _L_ ) signal can be divided into two sub-steps. The first step involves converting the shape of the _Q_ NOR( _L_ ) signal into a square wave signal ( _Q_ sq) by pressing the ‘‘Sig-to-Sq’’ button. The third display window is used to show the resulting square wave signal. The second step is counting the frequency of the square wave signal, which relies on detecting the rising edges of the signal. In the first step, the _Q_ NOR( _L_ ) signal is compared to a reference value ( _Q_ ref). The user can set this reference value based on observation of the midpoint of the _Q_ NOR( _L_ ) signal or by positioning the vertical sliding bar on the right side of the second display window near the center of the _Q_ NOR( _L_ ) signal, where the program reads and displays the value. The special property of the reference value used is that it has a hysteresis characteristic, meaning it alternates between the chosen reference value plus 5 and minus 5 (similar to the behavior of a hysteresis comparator in electronic circuits). Assume that at the initial state, _Q_ NOR( _L_ ) is less than _Q_ ref - 5, resulting in _Q_ sq being 0. When _Q_ NOR( _L_ ) subsequently exceeds _Q_ ref + 5, _Q_ sq changes to 1. _Q_ sq will switch back to 0 when _Q_ NOR( _L_ ) drops below _Q_ ref - 5. Finally, when the ‘‘Count’’ button is pressed, the program counts the frequency of the _Q_ sq signal at its rising edges. The counting result is displayed in the text box below the ‘‘Count’’ button. Fig. 11 Upper shows an example of the _Q_ NOR( _L_ ) signal obtained from extracting the low-frequency component (with parameters set to _fs_ = 100, _fv_ = 103, and _N_ = 15). The dashed line represents the reference signal level ( _Q_ ref). The signal line used for comparison with the _Q_ NOR( _L_ ) signal fluctuates between _Q_ ref±5. Fig. 11 Lower displays the _Q_ sq signal obtained from the frequency counting process of the _Q_ NOR( _L_ ) signal. In this example, the frequency count result is 3. Several factors contribute to errors in the frequency measurement of the _Q_ NOR( _L_ )signal, impacting the accuracy of stripe density estimation. Resolution limitations play a significant role, as lower image resolutions can cause aliasing effects, making it difficult to extract accurate low-frequency components, as illustrated in Fig. 8(a). Additionally, distortion in the _Q_ NOR( _L_ ) signal can arise during the transformation into a square wave ( _Q_ sq), where improper threshold selection ( _Q_ ref) can misinterpret noise as valid signal transitions, leading to incorrect frequency counts, as shown in Fig. 11. FIGURE 10. Utilizing data around the point of interest for the moving average filter: (a) _n_ − _N_ _>_ 0 and _n_ + _N_ _<_ max; (b) _n_ + _N_ _>_ max; (c) _n_ − _N_ _<_ 0. (including _Q_ ref) are essential for achieving accurate stripe density measurements. FIGURE 11. The conversion of the _Q_ NOR( _L_ ) signal into a square wave: Upper-The _Q_ NOR( _L_ ) signal in the second sub-window; Lower-The resulting square wave signal _Q_ sq in the third sub-window. The choice of window size ( _N_ ) in low-pass filtering also significantly affects measurement accuracy. If _N_ is too small, residual high-frequency noise remains in the signal. Conversely, if _N_ is too large, it suppresses the magnitude of _Q_ NOR( _L_ ), potentially reducing the detectability of lowfrequency components, as demonstrated in Fig. 12. Similarly, if _�f_ (different frequency) is excessively large, the magnitude drops too rapidly, affecting the accuracy of frequency extraction, as illustrated in Fig. 14. Lastly, hysteresis effects in signal processing can introduce detection delays or missed variations if the hysteresis threshold is not properly set. Specifically, the selection of _Q_ ref directly influences hysteresis behavior since the hysteresis value is defined as _Q_ ref±5. If _Q_ ref is misconfigured, it can lead to unstable frequency detection, as demonstrated in Fig. 11. To minimize these errors, improving image resolution, optimizing window size selection, and fine-tuning threshold parameters _F._ _MEASURING THE DENSITY OF STRIPE PATTERNS_ After the target stripe pattern image to be measured is imported into the first display window, the process continues with converting the image to black-and-white and creating a grid pattern with varying density from low ( _fL_ ) to high ( _fR_ ) (from the left edge of the display window to the right edge). This setup, where _fL_ _<_ _fs_ _<_ _fR_, results in moiré patterns with multiple curved black-and-white stripes appearing in the first display window. The density measurement of the target stripe pattern can be performed using two methods. The first method involves using the horizontal frequency sliding bar at the top of the first display window to align with the straight-looking stripes (less curved than others in the image). The user can then read the measured value from _fm_ . The second method involves activating the automatic detection feature (‘‘Auto’’ button), which enables the program to scan the color intensity levels of the image in the first display window. This scanning process begins at ( _h_ 0 _, v_ 0) and proceeds to ( _h_ 0 _, v_ max), iterating through each column from left to right. Each column undergoes low-frequency component extraction and frequency counting to determine the frequency of the _Q_ NOR( _L_ ) signal corresponding to that column. The reference value ( _Q_ ref) can either be user-defined or derived from the low-frequency extraction results at a specific column as a guideline. The computed frequency values for each column are displayed in the fourth display window, positioned below the first display window. The program then scans for column positions (F_m) where the frequency equals zero ( _�f_ = 0) for three or more consecutive columns. The average value of these column positions is calculated and displayed as the _fs_ value measured by the system. Additionally, a vertical line is drawn at these column positions to help the user easily observe them. If the user prefers not to use the automatically measured value and wants to evaluate it manually, they can use the frequency sliding bar at the top of the fourth display window to align with the _�f_ = 0 position themselves. The measured result is then displayed at the top of the display window. IV. EXPERIMENTS AND RESULTS _A._ _TESTING THE PERFORMANCE OF THE MOVING_ _AVERAGE FILTER_ To study the performance of the moving average filter on the magnitude and shape of the _Q_ NOR( _L_ ) signal, as these two parameters affect the accuracy of frequency counting. This section divides the experiment into two sub-experiments. The first experiment involves fixing the values of _fs_ and _fv_ (with a duty cycle of 0.5) and varying the value of _N_ . The second experiment involves fixing the value of _fs_ (with a duty cycle of 0.5) and varying both _fv_ and _N_ . The details of these sub-experiments are as follows: 1) FIRST SUB-EXPERIMENT The value of _fs_ is fixed at 100, and _fv_ is fixed at 103, whereas _N_ is varied from 10-100 (with 12 different values). This results in _�f_ = 3, which is approximately 0.03 times the values of _fs_ and _fv_ . Fig. 12 shows the results of the experiment with varying values of _N_ . At _N_ = 10, the _Q_ NOR( _L_ ) signal still contains significant high-frequency components (resulting in large ripples). If this signal is used in the frequency counting process, it may lead to high errors due to the possibility of counting these ripples. At _N_ = 15-20, the _Q_ NOR( _L_ ) signal appears as a triangular waveform, which aligns with the principles discussed in Section II. As _N_ increases, the magnitude of the _Q_ NOR( _L_ ) signal decreases, and the signal shape gradually approaches a sine wave due to the reduction of high-frequency components from the triangular signal. Fig. 13 illustrates the relationship between the magnitude of the _Q_ NOR( _L_ ) signal and various values of _N_, showing a decrease from 146-33 as _N_ increases from 10-100. If the _Q_ NOR( _L_ ) signal becomes too small, this may introduce errors in frequency counting. 2) SECOND SUB-EXPERIMENT The value of _fs_ is fixed at 100, whereas _fv_ is varied from 101-109 and _N_ is varied from 20-60. Fig. 14 shows examples of the _Q_ NOR( _L_ ) signal waveform when _N_ = 50, with _�f_ = | _fv_ - _fs_ | ranging from 1-6. When _�f_ = 1, the _Q_ NOR( _L_ ) signal appears as a triangular waveform. As _�f_ increases, the shape of the _Q_ NOR( _L_ ) signal becomes more sinusoidal due to the attenuation of high-frequency components, confirming that the moving average filter functions as a low-pass filter. Additionally, examining the ripple magnitude from residual high-frequency components shows that the ripple size remains relatively consistent due to filtering with the same _N_ value. Fig. 15 shows the results of plotting the magnitude of the _Q_ NOR( _L_ ) signal against _�f_ and _N_ . The magnitude of _Q_ NOR( _L_ ) decreases as _�f_ increases, and higher values of _N_ result in a faster rate of decrease in the magnitude. _B._ _MEASURING THE DENSITY OF STRIPE PATTERNS_ _SIMULATED BY A COMPUTER PROGRAM_ Parallel binary stripe patterns with uniform frequency (constant spacing between stripes along the considered length) were simulated using a computer program to test the performance of the measurement system developed. In creating these stripe patterns, the data resolution was increased tenfold from the usual, as described in Section III-C. For testing the performance of the proposed measurement system, the frequency ( _fs_ ) of the target stripe pattern was varied from 30-180 L <sup>−1</sup> (in steps of 30 L <sup>−1</sup> ). Gradient grid lines were applied such that the left and right sides of the window had values lower and higher than _fs_ by −5 L <sup>−1</sup> and +5 L <sup>−1</sup>, respectively. Different _Q_ ref values were used as shown in Table 1, and the measurement results obtained from the program and manual measurement are presented in the right column of the table. TABLE 1. The parameters used and the results obtained for the case of simulated stripe pattern images. In Table 1, the values of _fs_ represent the stripe densities generated from the simulation, which are considered as manually measured values. Meanwhile, the values of F_m are obtained using the proposed measurement method. The stripe density measurement using the proposed method yields an error of zero, indicating perfect agreement with the reference values. This high level of accuracy is primarily attributed to the controlled nature of the test images used in this experiment. Specifically, the stripe patterns were artificially generated with uniformly spaced lines of consistent intensity, ensuring minimal variation in the input data. Unlike real-world woven fabrics, where variations in thread thickness, uneven spacing, and lighting inconsistencies may introduce measurement deviations, the synthetic test images provide an idealized environment for algorithm validation. As a result, the automated method was able to extract the stripe density with maximum precision. However, when applied to actual fabric images, additional factors such as texture complexity and noise may introduce minor discrepancies, which are further analyzed in Table 2. Figures 12-15 provide essential insights into the benefits of low-frequency component extraction in stripe density measurement. Figure 12 illustrates how varying the parameter _N_ in the moving average filter affects the shape and FIGURE 12. The _Q_ NOR( _L_ ) signal when varying _N_ values from 10-100. FIGURE 13. The magnitude of _Q_ NOR( _L_ ) when vary _N_ values. magnitude of the extracted signal, demonstrating that increasing _N_ smoothens the signal and reduces high-frequency noise. Figure 13 quantifies the impact of different _N_ values on the magnitude of the extracted signal, supporting the optimal selection of parameters for accurate frequency measurement. Figure 14 examines the relationship between a fixed value of _N_ and varying values of _�f_, illustrating how frequency resolution affects the extracted signal. The results indicate that when _N_ = 50, the parameter _�f_ should not exceed 5 L <sup>−1</sup>, as larger values cause the signal magnitude to decrease excessively, making it difficult to detect the low-frequency components necessary for accurate stripe density measurement. This highlights the importance of selecting an appropriate range for _�f_ when using a specific _N_ value to maintain signal integrity. Figure 15 further analyzes the selection of _N_ and _�f_ by evaluating their relationship across different frequency ranges. The graph shows that when _N_ = 40, the method remains effective for all _�f_ values while maintaining a linear response. In contrast, for _N_ = 20 and _N_ = 30, the method still covers all _�f_ ranges but exhibits a non-linear response. As _N_ increases beyond 40, the valid range of _�f_ decreases, and the magnitude of the extracted signal drops more rapidly, limiting its usability for higher frequency variations. From this analysis, Figure 15 suggests that all _N_ values are suitable for _�f_ = 5 L <sup>−1</sup>, meaning that in practical applications, the frequency content near the edges of the image should not exceed 5 L <sup>−1</sup> to ensure stable and reliable measurements. This insight is crucial for defining optimal parameter settings when applying low-frequency component extraction in stripe density analysis. Fig. 16 illustrates examples of the program’s operation. Fig. 16(a) shows the moiré pattern produced by overlaying the simulated target stripe pattern with the grid lines drawn by the computer program. Fig. 16(b) demonstrates the procedure for setting the _Q_ ref value, which involves experimenting with the low-frequency component extraction of the target image at a selected column to determine an appropriate reference value. Fig. 16(c) displays the result after activating the automatic detection feature (‘‘Auto’’ button), where the program processes the image and moves the frequency sliding FIGURE 14. The _Q_ NOR( _L_ ) signal when varying <sup>�</sup> _f_ in the range of 1-6 with _N_ = 50. density measured by the proposed program closely matched the manual counting results. Fig. 19 presents examples of stripe pattern density measurements for six fabric images with varying densities. The measurement results and corresponding parameters for each image are summarized in Table 2. To assess the accuracy of the proposed method under diverse conditions, Table 2 includes an error analysis based on the formula defined in (10): FIGURE 15. The magnitude of _Q_ NOR( _L_ ) when varying <sup>�</sup> _f_ and _N_ . bar in the fourth display window to the column where the low-frequency component reaches zero. The corresponding frequency measurement is then shown at the top of the fourth display window. Fig. 17 presents an example of the program’s output for simulated stripe patterns, with the measured frequency values closely matching the test frequency values. _C._ _MEASURING THE DENSITY OF STRIPE PATTERNS IN_ _FABRIC IMAGES_ In cases where the target image has simple stripe patterns, such as single-stripe, monochrome fabric surfaces with a density lower than 120 L <sup>−1</sup>, it was found that an image resolution of 600 × 800 pixels is sufficient for this study. Fig. 18 demonstrates the program’s workflow in each step, which can be described as follows: Fig. 18(a) shows the target image loaded into the first display window. Fig. 18(b) presents the result after converting the image to black-andwhite using the adaptive thresholding feature (by pressing the ‘‘Adaptive Threshold’’ button). Fig. 18(c) displays the moiré pattern generated by overlaying grid lines on the target image. Fig. 18(d) shows the result after applying the intensity averaging feature (by pressing the ‘‘Average’’ button) to further reduce noise in the image. Fig. 18(e) is the final output after activating the automatic detection feature (by pressing the ‘‘Auto’’ button). For this target image, the stripe pattern Error = <sup>|</sup> <sup>_<u>x</u>_</sup> <sup>−</sup> <sup>_<u>y</u>_</sup> <sup>|</sup> × 100% (10) _y_ where _x_ denotes the automated measurement, and _y_ represents the manually counted reference. This metric quantifies the relative deviation between the proposed method and the ground truth, providing a normalized assessment of measurement accuracy. This approach is consistent with previous studies, such as Zhang et al. [8], which employed the same percentage deviation formula to evaluate the reliability of automated fabric density measurement systems. Similar methodologies have been widely adopted for analyzing high-density woven fabrics, ensuring consistency in performance evaluation. By applying this error metric, we can effectively assess the robustness of the proposed method under various fabric textures and density distributions. For all six images, the program’s measurements align with manual counting results, with an error margin of less than ±1 L <sup>−1</sup> . From Fig. 19, slight discrepancies are evident at the left and right edges of the fourth display window (shown at the bottom of each image) due to increased noise in the moiré pattern at these edges. Despite this, the experimental results confirm the program’s capability to accurately measure the stripe pattern frequency of the original images. A detailed analysis of the measurement deviations indicates that the maximum observed error is 0.71%, while the average error across all samples is 0.24%. These values further validate the accuracy and robustness of the proposed method, demonstrating its effectiveness in FIGURE 16. Program operation and the technique for selecting _Q_ ref when the target image is a simulated grid pattern. (a) The moiré pattern generated after overlaying the grid (for the case where _fL_ ̸ = _fR_ ). (b) Column selection and frequency filtering used to determine _Q_ ref. The column should be selected near the edge of the image, where the frequency is higher, as this region has the lowest magnitude. The _Q_ ref value is then determined based on this region. (c) The final extracted signal and detected frequency after selecting the column and applying the automatic detection feature (‘‘Auto’’ button). TABLE 2. The parameters used and the results obtained for six fabric stripe pattern images. minimizing deviations even in regions with increased noise interference. _D._ _MEASURING THE DENSITY OF CHECKERBOARD_ _STRIPE PATTERNS_ When the target fabric exhibits a checkerboard stripe pattern, as shown in Fig. 20(a), overlaying grid lines produces a highly disordered moiré pattern, making it difficult to accurately extract the low-frequency components for stripe density measurement. To address this, a specialized image processing tool allows users to select a specific fabric section by adjusting the frequency sliding bar to define the cropping area, as illustrated in Fig. 20(b). The extracted image is then converted to a binary format, though some residual noise may persist, requiring further refinement using the Averaging function (Fig. 20(d)). The processed image closely resembles simulated yarn structures (Section IV-A), but with slight irregularities in yarn spacing and thickness. Following this, Moiré pattern analysis is applied using overlay grid lines and an automatic detection feature, yielding a stripe density of 19.3 L <sup>−1</sup> (Fig. 20(e)). Doubling this value results in 38.6 L <sup>−1</sup>, closely matching the manual count of 39 L <sup>−1</sup>, confirming the method’s accuracy and reliability. Although Fig. 20(c) initially contains noise artifacts, the Averaging function effectively eliminates these issues, ensuring they do not affect the final measurement. Without this correction, residual white lines could be misinterpreted as additional stripes, leading to overestimation, while non-uniform yarn spacing could cause stripe miscounting, reducing measurement reliability. Figure 21(b) further highlights this effect by comparing the original checkered fabric image with the final processed result, demonstrating how noise reduction and stripe normalization contribute to accurate density estimation. Similarly, the effectiveness of the proposed method in handling different fabric types is illustrated in Fig. 21(a), which presents a comparative visualization of a processed fabric image from Fig. 18. The transformation from the original raw image to the final extracted pattern confirms the robustness of the approach across varying fabric structures. By smoothing artifacts and normalizing stripe structures, the proposed method consistently aligns with manual FIGURE 17. The frequency measurement results of simulated stripe patterns generated by the computer program. counting, demonstrating its effectiveness in handling complex cases. V. DISCUSSION The experiment in Section IV-A demonstrated that low-pass filtering using the moving average filter effectively removes high-frequency components from the _Q_ NOR( _L_ ) signal. Increasing the number of points used for averaging yields results that align with reducing the cutoff frequency in low-pass filter circuits in electronics, where high-frequency components of the signal are removed or diminished in magnitude. Selecting an appropriate value for the number of data points ( _N_ ) used for averaging in the moving average filter significantly impacts the accuracy of measuring stripe density. If _N_ is too low, high-frequency components remain prevalent in the signal, whereas if _N_ is too high, the low-frequency signal to be detected becomes diminished in size, potentially affecting measurement accuracy. Experiment IV-B involved measuring the density of simulated stripe patterns, which were more ideal than those in Experiments IV-C and IV-D. In this case, the stripes were uniformly straight without curvature, with a relatively consistent duty cycle and spacing between the stripes FIGURE 18. Program operation for processing a loaded target image: (a) The original image; (b) The image obtained after applying the adaptive thresholding feature (by pressing the ‘‘Adaptive Threshold’’ button); (c) The image with an overlaid grid; (d) The image obtained after applying the intensity averaging feature (by pressing the ‘‘Average’’ button); (e) The final result obtained after activating the automatic detection feature (by pressing the ‘‘Auto’’ button). (with minor deviations due to the resolution of the display window used for drawing). The results reveal that measuring stripe patterns with high frequency (density) allows the moving average filter to more effectively separate high-frequency components from low-frequency components compared to low-frequency stripe patterns. Experiments IV-C and IV-D used fabric stripe patterns that were more complex and deviated from ideal patterns. These fabrics included vertical stripe patterns, varying duty cycles, and frequency values that differed from position to position, with thread lines that curved when the spacing between stripes increased. However, after enhancing the image quality using the provided tools, the sample fabric images were successfully measured for stripe density using the proposed method. The experimental results shown in Figs. 12 and 14 indicate that the shape of the _Q_ NOR( _L_ ) signal in Figs. 12(a)–12(c) and 14(a)–14(b) exhibits a triangular waveform, which aligns FIGURE 19. The stripe frequency measurement results from six fabric images. FIGURE 20. Stripe frequency measurement of a checkered fabric image: (a) The original image; (b) The image after selecting the region of interest; (c) The image obtained after applying the adaptive thresholding feature (by pressing the ‘‘Adaptive Threshold’’ button); (d) The image obtained after applying the intensity averaging feature (by pressing the ‘‘Average’’ button); (e) The final result obtained after activating the automatic detection feature (by pressing the ‘‘Auto’’ button). with (7) and (8) in the case where _fv_ ̸ = _fs_ . In contrast, for Figs. 12(d)–12(l) and 14(c)–14(f), the _Q_ NOR( _L_ ) signal takes the form of a sinusoidal waveform. This transformation results from the attenuation or elimination of high-frequency components due to low-pass filtering. Regarding (6), which applies to the case where _fv_ = _fs_ ( _�f_ = 0), an ideal low-pass filtering process would produce a _Q_ NOR( _L_ ) signal with a constant magnitude, depending on the position where the target stripe pattern and the generated grid lines are superimposed. However, this study does not experimentally investigate variations in positional alignment. Nevertheless, observers can visually identify the effect of such superposition in the first display window, as shown in Figs. 16(c), 17(a)–17(f), and 18(e). The effect is particularly evident at the column position where the frequency sliding bar is placed, indicated by a vertical white line, which represents the detected zero-frequency region. A comparative analysis of the methodology and performance of the proposed approach with previously published studies [14], [15], [16] reveals that these methods exhibit a common principle: measuring high-frequency (or high-density) stripe patterns by attenuating the frequency components to extract low-frequency signals, which are subsequently analyzed instead of detecting high-frequency signals directly. In studies [14] and [15], the approach involves sampling the target image signal at a frequency close to the stripe pattern frequency. Whereas studies [14], [15] rely on a different approach, this study and [16] adopt a technique that superimposes computer-generated grid lines onto the target surface image to induce a moiré pattern. Another key observation from the performance of each method is that the moiré patterns generated by the superposition of the target stripe pattern and the computer-generated grid, as implemented in [16] and the method proposed in this study, can serve as a tool for backtracking verification FIGURE 21. Comparative visualization of raw and processed images demonstrating the effectiveness of the proposed method. (a) Comparison of the original fabric image (left) and the final processed result (right) from Fig. 18. (b) Comparison of the original checkered fabric image (left) and the final processed result (right) from Fig. 20. or preliminary estimation of the stripe density in the target image. These moiré patterns provide clear visual cues, allowing users to distinguish between straight and curved fringes, which can aid in assessing the stripe distribution with greater clarity. Furthermore, experimental findings indicate that the proposed system is capable of measuring the yarn density of fabrics even when minor factors such as yarn curvature or slight irregularities in stripe spacing are present. In contrast, the methods in [14] and [15] are more suitable for measuring stripe patterns with uniform stripe spacing, as any displacement of the stripe positions directly affects the accuracy of the sampled frequency signal. Additionally, the sampling process isolates only low-frequency components, making it challenging to verify the reliability of the extracted signals for further analysis. For practical implementation of the proposed technique, the system can be enhanced by integrating a real-time digital microscope for image acquisition, allowing users to conveniently import images for analysis. The software interface can be designed to support both automatic and manual operation modes, providing flexibility based on user requirements. The manual mode would be particularly useful for backtracking verification or for analyzing and fine-tuning parameters related to frequency filtering and reference signal level selection for frequency counting. Once the optimal parameters have been determined, users can switch to the automatic mode for improved convenience, speed, and accuracy when measuring a large number of fabrics of the same type. VI. CONCLUSION An alternative stripe density measurement technique using image processing has been proposed, leveraging the moiré phenomenon and low-frequency component extraction to enhance accuracy while reducing hardware costs. By applying a moving average filter, the method effectively isolates low-frequency signals, making it adaptable to structured surfaces beyond textiles. Compared to manual counting methods, it offers higher reproducibility and accuracy, particularly for non-uniform and high-density stripe patterns. Experimental validation confirms that the extracted signals align well with theoretical predictions and prior studies [27], achieving an average error of just 0.24%, as shown in Table 2. Future research could enhance the method’s adaptability to complex two-dimensional stripe patterns and integrate artificial intelligence for automated pattern recognition, improving robustness against noise. These advancements would extend its applications beyond fabric analysis to structured surface characterization in optics, printing, and semiconductor industries. The findings demonstrate that moiré pattern analysis combined with low-frequency signal extraction provides a cost-effective and scalable approach for industrial stripe density measurement, with potential for further optimization in material inspection and automated quality assessment systems. REFERENCES [1] D. Schneider, Y.-S. Gloy, and D. Merhof, ‘‘Vision-based on-loom measurement of yarn densities in woven fabrics,’’ _IEEE_ _Trans._ _Instrum._ _Meas._, vol. 64, no. 4, pp. 1063–1074, Apr. 2015. [2] G. Reich, ‘‘A Moiré pattern-based thread counter,’’ _Phys. Teacher_, vol. 55, no. 7, pp. 426–430, Oct. 2017. [3] T. Photia, W. Temnuch, S. Srisuphaphon, N. Tanasanchai, W. Anukool, K. Wongrach, P. Manit, S. Chiangga, and S. Deachapunya, ‘‘Highprecision grating period measurement,’’ _Appl. Opt._, vol. 58, no. 2, p. 270, Jan. 2019. [4] J.-J. Lin, ‘‘Applying a co-occurrence matrix to automatic inspection of weaving density for woven fabrics,’’ _Textile_ _Res._ _J._, vol. 72, no. 6, pp. 486–490, Jun. 2002. [5] A. Wijayono, T. Munandar, R. Rudi, and V. G. V. Putra, ‘‘Woven fabric density measurement using image processing techniques,’’ in _Proc. Book_ _Indonesian_ _Textile_ _Conf._ _Textile_ _4.0_ _Clothing_ _Beyond_ _(Int._ _Conf.)_, vol. 3, 2019, pp. 174–180. [6] S. Meng, R. Pan, W. Gao, J. Zhou, J. Wang, and W. He, ‘‘Woven fabric density measurement by using multi-scale convolutional neural networks,’’ _IEEE Access_, vol. 7, pp. 75810–75821, 2019. [7] R. Pan, R. Pan, J. Zhang, Z. Li, W. Gao, B. Xu, and W. Li, ‘‘Applying image analysis for automatic density measurement of high-tightness woven fabrics,’’ _Fibres Textiles Eastern Eur._, vol. 24, no. 2, pp. 66–72, Jan. 2016. [8] J. Zhang, R. Pan, J. Wang, W. Gao, and Y. Han, ‘‘An efficient method for density measurement for high-tightness woven fabrics,’’ _Textile_ _Res._ _J._, vol. 87, no. 3, pp. 329–339, Feb. 2017. [9] S. A. H. Ravandi and K. Toriumi, ‘‘Fourier transform analysis of plain weave fabric appearance,’’ _Textile_ _Res._ _J._, vol. 65, no. 11, pp. 676–683, Nov. 1995. [10] A. Janasak, C. Koopipat, H. Noguchi, and S. Kiatkamjornwong, ‘‘Mod ulation transfer function measurement for ink jet printed silk fabrics,’’ _J._ _Imag. Sci. Technol._, vol. 51, no. 2, pp. 127–140, Mar. 2007. [11] R. Pan, W. Gao, Z. Li, J. Gou, J. Zhang, and D. Zhu, ‘‘Measuring thread densities of woven fabric using the Fourier transform,’’ _Fibres_ _Textiles_ _Eastern Eur._, vol. 23, nos. 1–109, pp. 35–40, Jan. 2015. [12] R. Zhang and B. Xin, ‘‘An investigation of density measurement method for yarn-dyed woven fabrics based on dual-side fusion technique,’’ _Meas._ _Sci. Technol._, vol. 27, no. 8, Aug. 2016, Art. no. 085403. [13] B. Le, D. Troendle, and B. Jang, ‘‘Detecting fabric density and weft distortion in woven fabrics using the discrete Fourier transform,’’ in _Proc._ _ACM_ _Southeast_ _Conf._ New York, NY, USA: Association for Computing Machinery, Apr. 2021, pp. 108–113. [14] U. Je, J. Kim, H. Cho, H. Lim, C. Park, G. Kim, S. Park, Y. Park, K. Kim, T. Woo, N. Chung, J. Kim, and J. Kim, ‘‘Indirect measurement of high grid strip densities over Nyquist sampling rate based on the Moiré pattern analysis for quality assurance in grid manufacturing,’’ _Measurement_, vol. 91, pp. 634–640, Sep. 2016. [15] U. K. Je, C. K. Park, H. W. Lim, H. S. Cho, D. Y. Lee, H. W. Lee, K. S. Kim, S. Y. Park, G. A. Kim, S. Y. Kang, J. E. Park, W. S. Kim, D. H. Jeon, and T. H. Woo, ‘‘Evaluation of high grid strip densities based on the moiré artifact analysis for quality assurance: Simulation and experiment,’’ _Nucl._ _Instrum._ _Methods_ _Phys._ _Res._ _A,_ _Accel._ _Spectrom._ _Detect._ _Assoc._ _Equip._, vol. 866, pp. 58–64, Sep. 2017. [16] J. Wu, P. Zhong, J. Ling, Z. Li, X. Tang, S. Su, and T. Zhai, ‘‘Design method of fabric density sensor based on the virtual grating with gradual constant,’’ _IEEE Access_, vol. 7, pp. 160345–160362, 2019. [17] H. Xie, Q. Wang, S. Kishimoto, and F. Dai, ‘‘Characterization of planar periodic structure using inverse laser scanning confocal microscopy Moiré method and its application in the structure of butterfly wing,’’ _J._ _Appl._ _Phys._, vol. 101, no. 10, May 2007, Art. no. 103511. [18] L. Yu, S.-R. Wang, and G.-Y. Lin, ‘‘An image domain approach to the interpretation of the visible Moiré phenomenon,’’ _J._ _Opt._, vol. 15, no. 7, Jun. 2013, Art. no. 075407. [19] M. Liao, W. He, J. Wu, D. Lu, X. Liu, and X. Peng, ‘‘Optical authentication based on Moiré effect of nonlinear gratings in phase space,’’ _J. Opt._, vol. 17, no. 12, Oct. 2015, Art. no. 125704. [20] S. Rasouli and M. Yeganeh, ‘‘Formulation of the moiré patterns formed by superimposing of gratings consisting topological defects: Moiré technique as a tool in singular optics detections,’’ _J. Opt._, vol. 17, no. 10, Aug. 2015, Art. no. 105604. [21] M. Nakagawa, K. Sutou, and T. Hayakawa, ‘‘Reproduction of additive type fluorescence moiré fringes by image drawing software and study of accuracy of fluorescence imprint alignment,’’ _Jpn. J. Appl. Phys._, vol. 59, no. SI, Mar. 2020, Art. no. SIIJ11. [22] W. Yang, Z. Wang, C. Shen, Y. Liu, and S. Liu, ‘‘Design of a roll angle measuring sensor,’’ _IEEE Access_, vol. 8, pp. 115159–115166, 2020. [23] R. Ma, J. Li, K. He, T. Tang, Y. Zhang, and X. Gao, ‘‘Application of Moire profilometry in three-dimensional profile reconstruction of key parts in railway,’’ _Sensors_, vol. 22, no. 7, p. 2498, Mar. 2022. [24] B. Huang, C. Wang, H. Fang, S. Zhou, and T. Suga, ‘‘Moiré-based alignment using centrosymmetric grating marks for high-precision wafer bonding,’’ _Micromachines_, vol. 10, no. 5, p. 339, May 2019. [Online]. Available: https://www.mdpi.com/2072-666X/10/5/339 [25] C. Yang, Z. Yang, Y. Ke, T. Chen, M. Grzegorzek, and J. See, ‘‘Doing more with Moiré pattern detection in digital photos,’’ _IEEE Trans. Image_ _Process._, vol. 32, pp. 694–708, 2023. [26] Y.-T. Peng, C.-H. Hou, Y.-C. Lee, A. J. Yoon, Z. Chen, Y.-T. Lin, and W.-C. Lien, ‘‘Image Demoiréing via multiscale fusion networks with Moiré data augmentation,’’ _IEEE_ _Sensors_ _J._, vol. 24, no. 12, pp. 20114–20127, Apr. 2024. [Online]. Available: https://api.semanticscholar.org/CorpusID [27] P. Khokhuntod and A. Kaewpoonsuk, ‘‘Analysis of Moiré pattern for parallel binary gratings based on AND and OR operators,’’ _J. Opt._, vol. 26, no. 8, Jun. 2024, Art. no. 085701. [28] G. B. Arfken and H. J. Weber, _Mathematical Methods for Physicists_, 6th ed. Amsterdam, The Netherlands: Elsevier, 2005. [29] A. Kaewpoonsuk, N. Sisuk, K. Smerpitak, and P. Wardkein, ‘‘Analysis of beat frequency detector based on basic logic gates,’’ _ICIC_ _Exp._ _Lett._, vol. 12, pp. 815–822, Aug. 2018. [30] P. Roy, S. Dutta, N. Dey, G. Dey, S. Chakraborty, and R. Ray, ‘‘Adaptive thresholding: A comparative study,’’ in _Proc. Int. Conf. Control, Instrum.,_ _Commun. Comput. Technol. (ICCICCT)_, Jul. 2014, pp. 1182–1186. [31] A.-X. Zhao, X.-J. Tang, Z.-H. Zhang, and J.-H. Liu, ‘‘The parameters optimization selection of Savitzky–Golay filter and its application in smoothing pretreatment for FTIR spectra,’’ in _Proc._ _9th_ _IEEE_ _Conf._ _Ind._ _Electron. Appl._, Jun. 2014, pp. 516–521. PONGSAK KHOKHUNTOD received the bachelor’s and master’s degrees in applied physics from Naresuan University, Phitsanulok, Thailand, where he is currently pursuing the Ph.D. degree in applied physics. His research interests include physics, computational physics, electronics, image processing, and machine learning. ANUCHA KAEWPOONSUK was born in Phitsanulok, Thailand, in 1974. He received the B.Sc. degree in physics-computer and electronics from Naresuan University, Phitsanulok, in 1997, and the M.Eng. and D.Eng. degrees in electrical engineering from the King Mongkut’s Institute of Technology Ladkrabang (KMITL), Bangkok, Thailand, in 2001 and 2008, respectively. He is currently an Associate Professor with the Department of Physics, Naresuan University. His research interests include electronic instrumentation, measurement systems, and analog and digital circuit designs.

섹션 본문

섹션 본문이 없습니다.

참고문헌 29건

  1. Vision-Based On-Loom Measurement of Yarn Densities in Woven Fabrics IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2014 10.1109/tim.2014.2363580
  2. Fourier Transform Analysis of Plain Weave Fabric Appearance Textile Research Journal · SAGE Publishing · 1995 10.1177/004051759506501108
  3. Modulation Transfer Function Measurement for Ink Jet Printed Silk Fabrics Journal of Imaging Science and Technology · Society for Imaging Science and Technology · 2007 10.2352/j.imagingsci.technol.(2007)51:2(127)
  4. The parameters optimization selection of Savitzky-Golay filter and its application in smoothing pretreatment for FTIR spectra 2014 10.1109/iciea.2014.6931218
  5. An image domain approach to the interpretation of the visible moiré phenomenon Journal of Optics · IOP Publishing · 2013 10.1088/2040-8978/15/7/075407
  6. Applying a Co-occurrence Matrix to Automatic Inspection of Weaving Density for Woven Fabrics Textile Research Journal · SAGE Publishing · 2002 10.1177/004051750207200604
  7. Adaptive thresholding: A comparative study 2014 10.1109/iccicct.2014.6993140
  8. Characterization of planar periodic structure using inverse laser scanning confocal microscopy moiré method and its application in the structure of butterfly wing Journal of Applied Physics · American Institute of Physics · 2007 10.1063/1.2732548
  9. Measuring Thread Densities of Woven Fabric Using the Fourier Transform Fibres and Textiles in Eastern Europe · Index Copernicus International S.A. · 2015
  10. Optical authentication based on moiré effect of nonlinear gratings in phase space Journal of Optics · IOP Publishing · 2015 10.1088/2040-8978/17/12/125704
  11. Indirect measurement of high grid strip densities over Nyquist sampling rate based on the moiré pattern analysis for quality assurance in grid manufacturing Measurement · Elsevier BV · 2016 10.1016/j.measurement.2016.05.082
  12. An investigation of density measurement method for yarn-dyed woven fabrics based on dual-side fusion technique Measurement Science and Technology · IOP Publishing · 2016 10.1088/0957-0233/27/8/085403
  13. An efficient method for density measurement for high-tightness woven fabrics Textile Research Journal · SAGE Publishing · 2016 10.1177/0040517516629147
  14. Applying Image Analysis for Automatic Density Measurement of High-tightness Woven Fabrics Fibres and Textiles in Eastern Europe · Index Copernicus International S.A. · 2016 10.5604/12303666.1191429
  15. Formulation of the moiré patterns formed by superimposing of gratings consisting topological defects: moiré technique as a tool in singular optics detections Journal of Optics · IOP Publishing · 2015 10.1088/2040-8978/17/10/105604
  16. Evaluation of high grid strip densities based on the moiré artifact analysis for quality assurance: Simulation and experiment Nuclear Instruments and Methods in Physics Research Section A Accelerators Spectrometers Detectors and Associated Equipment · Elsevier BV · 2017 10.1016/j.nima.2017.06.001
  17. A Moiré Pattern-Based Thread Counter The Physics Teacher · American Association of Physics Teachers · 2017 10.1119/1.5003746
  18. High-precision grating period measurement Applied Optics · Optica Publishing Group · 2019 10.1364/ao.58.000270
  19. Moiré-Based Alignment Using Centrosymmetric Grating Marks for High-Precision Wafer Bonding Micromachines · Multidisciplinary Digital Publishing Institute · 2019 10.3390/mi10050339
  20. Woven Fabric Density Measurement by Using Multi-Scale Convolutional Neural Networks IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2922502
  21. Design Method of Fabric Density Sensor Based on the Virtual Grating With Gradual Constant IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2951233
  22. Reproduction of additive-type fluorescence moiré fringes by image drawing software and study of accuracy of fluorescence imprint alignment Japanese Journal of Applied Physics · Institute of Physics · 2020 10.35848/1347-4065/ab7ae1
  23. Design of a Roll Angle Measuring Sensor IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3004365
  24. Detecting fabric density and weft distortion in woven fabrics using the discrete fourier transform 2021 10.1145/3409334.3452049
  25. Mathematical Methods for Physicists Elsevier eBooks · Elsevier BV · 1985 10.1016/c2013-0-10310-8
  26. Application of Moire Profilometry in Three-Dimensional Profile Reconstruction of Key Parts in Railway Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22072498
  27. Doing More With Moiré Pattern Detection in Digital Photos IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2023 10.1109/tip.2022.3232232
  28. Image Demoiréing via Multiscale Fusion Networks With Moiré Data Augmentation IEEE Sensors Journal · IEEE Sensors Council · 2024 10.1109/jsen.2024.3392781
  29. Analysis of Moiré pattern for parallel binary gratings based on AND and OR operators Journal of Optics · IOP Publishing · 2024 10.1088/2040-8986/ad53de