Skip to main content
. 2022 Dec 30;9(1):8. doi: 10.3390/jimaging9010008
Pseudocode
Input:
            Color image Q
1. Find indentation mark
            Get color channels R, G, B from Q
            Find channel A with Maximun entropy
            Binarize A, using the proposed method
            Fill holes and remove noise using mathematical morphology
            Label objects
            Select larger object
2. Indentation corner detection:
             Using local maximum radius:
                          Find corners CR
                         Get Quadrature index QR
             Using indentation perimeter:
                         Find corners CP
                         Get Quadrature index QP
             Using Hough transform:
                         Find corners CH
                         Get Quadrature index QH
3. Find best indentation result:
            if (QR+0.05 > QP && QR+0.05 > QH) {
                        Select local maximum radius solution }
            else if (QP+0.05 > QH && QP+0.05 > QR) {
                        Select Perimeter solution }
            else{
                        Select Hough solution }
4. Calculate hardness estimation HV.
Output: HV