Fextract: Flowchart For Dataset Generation Process
Fextract: Flowchart For Dataset Generation Process
Fextract
This function extracts 23 features from the embedded image and stores into x matrix and t vector. The x
matrix and t vector work as input to the ANN during analysis of an image. The fextract function extracts
these 23 features by calculating the Red, Green and Blue components of the images, converts image into
grayscale image and calculates Mean, Min and Max of the grayscale, calculates the HSV and energy
components, Standard Deviation, Entropy, Histogram, ALE and Binary Similarity Measures.
The dataset generation process depends on the number of images and text files selected for training the
NN. This current dataset with which the experiment is done took around 180 minutes on an Intel core 5
The extraction process is undertaken to extract 23 features from each image. If we use N number of
images in training session than number of features to be fed up in Neural Network will be 23 x N. These
23 features are grouped into 8 groups. All extracted features are stored in variable featureVector.
The MATLAB code works as described below using 8 group features as described in the table
featureVector(3) = mean(bImage(:));
RGB image channel - Red (R), Green (G),
assigned as 3 features
Mean, Max and Color image is converted to featureVector(4) = mean(grayImage(:));
featureVector(6) = max(grayImage(:));
grayscale image Mean, Min and Max of
grayscale intensity are taken as
next 3 features
Mean of each HSV color space of an RGB featureVector(7) = mean(hImage(:));
channel from its image can represent the image featureVector(8) = mean(sImage(:));
featureVector(9) = mean(vImage(:));
representation in features and analyze color
features
Energy values of Energy of image can be featureVector(10) = rEnergy;
featureVector(12) = bEnergy;
channels of the squared color component of an
WHERE x represents R,G,B energy channels
RGB image image for each of the RGB
xEnergy = xImage.^2;
channel as scalar values and
xEnergy = mean(xEnergy(:));
saved as next 3 features
Standard Standard deviation is used in featureVector(13) = std2(rImage);
featureVector(15) = std2(bImage);
channel of the amount of variation or
as next 3 features
Entropy of Entropy is a statistical measure featureVector(16) = entropy(grayImage);
Entropy is defined as
where contains the image
histogram counts.
sum(h(1:128));
function that represents the distribution
featureVector(17) = H;
of tonal in image as one
feature.
Binary similarity The binary similarity and featureVector(19) = M1 - m1;
featureVector(21) = M3 - m3;
for final analysis and
featureVector(22) = M4 - m4;
classification of images as
featureVector(23) = M5 - m5;
stego or clear image. Features
5 more features.