Fractal Dimension Calculation of a Manganese-Chromium Bimetallic Nanocomposite Using Image Processing

1Department of Chemistry, Faculty of Science, Imam Khomeini International University, Qazvin 34148-96818, Iran 2Departamento de Ciencias Quı́micas, Facultad de Ciencias Exactas, Universidad Andrés Bello, Sede Concepción, 4070000 Concepción, Chile 3Laboratorio Virtual NANOCOSMOS, Departamento de Medio Ambiente y Energı́a, Centro de Investigación en Materiales Avanzados (CIMAV), 31136 Chihuahua, CHIH, Mexico


Introduction
Metal matrix composites (MMCs) are an important engineering material due to their various applications.Lightweight MMCs, due to their significant hardness and strength, have found wide applications in the aerospace and automotive industries.However, these applications have remained limited due to the lack of stretch of the composites.Composite conversion nanocomposites increase the yield strength and remove these limitations [1,2].MMCs have steadily become more favored in recent years for their high strength and stress resistance properties [3][4][5][6][7][8][9][10][11].
Chromium (Cr) and chromium compounds are widely used in many industrial procedures such as textile dyeing, printing inks, electroplating, leather tanning, chromium plating, and pigments as serious manufacturing resources [12,13].Manganese (Mn) is a mineral created in large amounts in both plant and animal tissues.Manganese lowers the temperature at which austenite converts into ferrite, therefore avoiding cementite precipitation at ferrite grain boundaries, and purifies the resulting pearlitic structures.Alloying elements, such as manganese, also enable solutionhardening of ferrite, but this effect is limited compared with that of carbon, nitrogen, phosphorus, and even silicon [14,15].
Image processing of microstructures involves several preparation steps, division, and postprocessing that finally lead to the extraction of quantitative data.Recently, computer-based image-processing methods have advanced quickly, making it possible to quantitatively describe complex colors, shapes, texture properties, and sizes.Imageprocessing methods are regularly used in tandem with mechanical and instrumental devices to change human 2 Journal of Nanomaterials manipulative work in the show of an assumed process [16,17].
The term "fractal dimension" has been used to describe several aspects of particle morphology.The fractal dimension of an individual particle, which can be a main particle or a composite particle such as a floc or aggregate, denotes the indiscretion and self-similarity of the particle.The fractal dimension parameter is determined by computing the length of the predictable perimeter by taking steps of a known length along the border and including the number of ladders.The border length increases with decreasing step size because a smaller step size allows for the presence of more detail in the particle outline [18][19][20].The word "fractal" is derived from the Latin "fractious" meaning fragmented; a fractal is defined as a mathematical object with a fractional (noninteger) dimension.It seems that wherever there is structural disorder and chaos, fractal geometry can be an efficient way of describing and analyzing it.
Fractal dimension is a very good mathematical method for the study of unequal geometric substances.Fractal dimension can reflect characteristics appearing in nature.The application of fractal system allows us to explain numerous states of fragmenting and branching occurring in ecological, biological, and other systems [21][22][23][24].The output is a binarized image with a one-pixel-wide boundary appropriate to be used for box-counting calculations to approximate the fractal dimension of the boundary.We developed a MATLAB (MathWorks, Natick, Massachusetts, USA) program based on theory to implement the box-counting technique for fractal dimension calculations.
Several specific theoretical and numerical models have been proposed in order to assess the fractal dimension.Recent studies have examined dimensions, but the majority of them were only one-or two-dimensional.These dimensions are a clear limitation to the study of complex and more general strengthening geometries [25,26].
Manganese and chromium have been used in this nanocomposite; potassium permanganate and potassium dichromate were used as the starting materials.Scanning electron microscope (SEM) images of the nanocomposites may be regular or irregular and their fractal dimension can be calculated.It is interesting to compare the fractal images of the nanocomposites.For example, in this paper, we investigated the size of the nanoparticles and calculated their fractal dimension.We also measured the average, minimum, and maximum of fractal dimensions and image's histogram and normalized image's histogram plot of the SEM image [27][28][29].

Experimental
2.1.Materials and Instruments.The starting materials were obtained from Merck (Berlin, Germany) and were used without further purification.The surface morphology of the product was characterized by using a LEO-1430VP scanning electron microscope (Zeiss, Germany) with an accelerating voltage of 15 kV.X-ray powder diffraction (XRD) measurements were performed using a Philips X'pert diffractometer (PANalytical, Almelo, Netherlands) with monochromatized CuK radiation.The sizes of the selected samples were estimated using the Scherer method.For identification, the SEM samples were coated with gold.

Synthesis of Nanocomposite Manganese and Chromium.
Potassium permanganate (KMnO 4 ) and potassium dichromate (K 2 Cr 2 O 7 ) were used as starting materials to prepare this nanocomposite.Initially, 0.2 g of potassium permanganate was transferred to a test tube and 0.01 g of clay was added as an intruder agent.Ethanoic acid, CH 3 COOH (4 mL), was then added to the mixture and the tube was quickly transferred to a centrifuge and run at 3000 rpm for 45 minutes.The sample was then taken out of the centrifuge and put aside.Then, 0.5 g of potassium dichromate and 0.01 g of clay were added to another test tube.NH 3 (5 mL) solution was added and the tube was placed in a centrifuge and run at 3000 rpm for 45 minutes.

Characterization of the Nanocomposite.
The XRD technique was used to determine the composition of the milled powder.The morphology and weight and atomic percentage of the nanocomposite were observed using a SEM image and EDX analysis, respectively.The contents of the first tube were thoroughly stirred and transferred to a second tube.This second tube was returned to the centrifuge and run at 3000 rpm for 45 minutes.The test tube was then removed from the centrifuge and the precipitate was separated out using filter paper.After drying, the precipitate was imaged with SEM instrument, and the atomic percentages were achieved by EDX analysis.So, the XRD spectrum was obtained to show that a manganese-chromium nanocomposite had been produced.

Calculation of Fractal Dimension and Image Analysis.
Dimension is one of the most significant ideas in fractal geometry.Now, there are numerous descriptions of this quantity, including packing, dimension, box-counting dimension, Hausdorff dimension, and modified box-counting dimension.Since the mathematic design and approximation of the box-counting dimension are straightforward, this quantity has become one of the most commonly used general dimensions [30,31].The calculations and analysis were done by programming with MATLAB and Statistical Package for the Social Sciences (SPSS; IBM, Armonk, New York, USA) software [32].Moreover, by declaring that the calculation results were comparable, all of the images were processed using a similar crop size and threshold value.Using this method, we calculated the fractals dimension theoretically by applying the following formula: where  is the fractal dimension and   is the number of squares including a part of the considered fractal dimensions.
Considering the resulting numbers, we drew a logarithmic diagram in which the vertical and horizontal axes were log(1/) and log   , respectively, and the coefficient of the box size was 1.3.We used a program written in MATLAB to calculate the fractal dimension.There are several methods for calculating the fractal definition including (1) the selfsimilarity definition [33], (2) the mass fractal dimension [34], (3) the spare-sphere fractal dimension [35], (4) the Euclid dimension [36], (5) the grid style [37], (6) the analytical approach for fractal diminishing [38], and (7) the boxcounting fractal dimension [39].We used the self-similar method for determining the fractal dimension from the SEM image, which employed the box-counting method for the fractal dimension.
For the box-counting fractal dimension we suppose that  is a nonempty and bounded subset of   and we suppose that   () is the fewest number of collections with a maximum dimension of () that can cover ().The box-counting dimensions under and above (): if they are equal we say they are equal to the box-counting dimension or the  box dimension; then we define dim The circle of cubes in  coordinates from   implies cubes in the following form: then   , . . .,  1 are integers.

Analysis of the Effective Factors for Creating the Nanomaterial.
It is important to note that we used centrifuges to make the nanomaterials with the low-to-high method.
After we mixed the solutions they were immediately put into the centrifuge, and an intruder agent was used to ensure that the particles were not connected.This intruder agent must be inert and must not participate in the main reaction.Centrifugal force ensures that the particles produced are not connected and remain on the nanoscale.The advantages of this method are its low cost, rapidity, and ease of application.
Here, we examine the preparation of a manganesechromium bimetallic nanocomposite.The XRD spectrum and SEM image and EDX analysis prepared for the sample both confirmed the creation of a nanocomposite.In the XRD spectrum (Figure 1), no distinguishing peaks are visible and these data did not identify the substance.This outcome is normal because composites are amorphous and their spectra are wide and uniform, unlike the spectra of crystalline materials that have clear and sharp peaks.
The SEM image (Figure 2) shows that the particles are smaller than 100 nm, which also confirms that this material is a nanomaterial.We were therefore able to confirm that we made a manganese-chromium bimetallic nanocomposite.We then obtained 30 random pictures from the SEM image and calculated their fractal dimensions using MATLAB software [40].For these 30 fractal dimensions we obtained image's histogram and normalized image's histogram, mean, median, max and min, range, skewness, and harmonic mean using SPSS software [41].

Analysis
Using MATLAB and SPSS Data.Thirty pictures were selected at random from the SEM image.We first calculated the fractal dimension for these 30 images using MATLAB software (Table 2).Mean, median, max and min,    range, skewness, and harmonic mean were also obtained for these data (Table 2) using SPSS software (Table 3).In Table 3, the mean of the fractal dimension is 1.778, the median is 1.770, the minimum is 1.60, the maximum is 1.98, the range is 0.38, the skewness is 0.177, and the harmonic mean is 1.771.
In statistics and probability theory, the skewness reflects the degree of asymmetry of the probability distribution.
Skewness is a measure of the presence or absence of distribution function symmetry.For a perfectly symmetrical distribution, the skewness is zero; for an asymmetric distribution with stretching toward higher quantities, the skewness is positive.Conversely, for an asymmetric distribution with stretching toward smaller quantities, the skewness is negative.Given that the amount of skewness for particles in this nanocomposite was positive (+0.177), this result reveals an asymmetrical distribution of fractal data with stretching toward higher quantities (Table 3).The harmonic mean is a measure of central tendency and is typically calculated when the average of the data is important.The harmonic mean was found to be 1.771 for this nanocomposite (Table 3).
A grayscale digital image consists of separate points of gray tones, or brightness, before incessantly variable tones.A normal image is separated into a number of specific points of brightness, and each of those points is defined via a digital data value.A pixel is the greatest fundamental element of some digital image.Each brightness point is a pixel of the digital image.Essentially, the image histogram shows the distribution of the pixel intensities in the image and is continuously used as a reference.Interactive thresholding can be very effective and afford fast, precise information [42,43].To establish the frequency distribution model for  4) by MATLAB software for the fractal data distribution.
The descriptive statistics of the fractal dimension was listed in Table 4.This table shows fractal dimensions of 30 random separated pieces of the SEM image with frequency and valid and cumulative percent of each piece.When dealing with statistical information, we come through numbers.Sometimes, the numbers are repeated.After a value repeated more than once, it is recognized as the frequency of a number.The total frequency of all modules less than the higher class boundary of a quantified class is named the cumulative frequency of that class.Cumulative frequency is found by addition of the frequency of a class interval and the frequencies of the former intervals up to that class interval.This is another way of expressing frequency distribution.Cumulative frequency is used to determine the number of explanations that lie below or above a specific value.The best  advantage of using cumulative percentage is that it offers an easier method to compare different sets of data.
Figure 5 shows a diagram in which there are 30 particles on the horizontal axis and the vertical axis shows the fractal dimension of these particles, which ranges from 1.60 to 1.98.The differences in the fractal dimensions of the particles can be clearly seen, which reveals the nonhomogeneity of the produced particles.
Normal probability plots were generated to check for errors in the normal distribution.If the points of these plots were in a straight line, then normally distributed errors are assumed.According to Figure 6, therefore, which shows a nearly straight line, we conclude that the fractal dimension distribution of the nanocomposite particles is a normally distributed error.Plotting residuals is a useful way of elucidating the goodness of fit of the data.Plotting the residuals versus the corresponding fitted values is a useful model for understanding the common types of disproportion.If  the fitted model is appropriate the curve should be symmetrical and the points should be uniformly distributed.Based on Figure 7, one can see that the points are not uniformly distributed, revealing an asymmetric curve that conforms to a skewness of 0.177.

Conclusion
Our calculations of the fractal dimensions of 30 randomly selected particles from the SEM image of the nanomaterial and the max, min, and range of the data can be used for analyzing the nanoparticles.We considered homogeneity and uniformity of the SEM image by selecting the 30 random particles from it.In fact, the fractal dimension can be obtained from the size and morphology of the particles.If the max and min of the data are close to each other or the range of data is small then we can conclude that the size and dispersion of the particles in the SEM image are similar and that these created nanoparticles show good homogeneity and uniformity.In the SEM image of this nanocomposite the range was large (about 0.38).For this reason, we concluded that the sizes and morphologies of the particles were different.This conclusion was consistent with the SEM image of the nanocomposite.Initially, it seemed that the picture was uniform.However, after doing the calculations it became clear that the produced particles were not homogenous;   despite the uniform dispersion of the particles, their sizes and morphologies were different.

Figure 4 :
Figure 4: Image's histogram and normalized image's histogram of the fractal dimension for the SEM image for the manganese-chromium bimetallic nanocomposite.

Figure 5 :
Figure 5: Diagram of 30 particles on the horizontal axis and the amount of fractal dimension on the vertical axis.

Figure 6 :
Figure 6: Normal probability curve of the fractal data distribution for the manganese-chromium bimetallic nanocomposite.

Figure 7 :
Figure 7: Residuals curve versus the values of fractal variables for the manganese-chromium bimetallic nanocomposite.
a Element; b intensity; c weight percentage; d atomic percentage.

Table 2 :
Fractal dimension for 30 random images from the SEM image of the manganese-chromium bimetallic nanocomposite.

Table 3 :
Analysis of fractal data for the manganese-chromium bimetallic nanocomposite.

Table 4 :
Descriptive statistics of the fractal dimension of the manganese-chromium bimetallic nanocomposite.