Skip to main content
. 2023 Feb 16;13(4):757. doi: 10.3390/diagnostics13040757
Algorithm 1: Feature Extraction and Classification Using the DTBV System
Input: Bone X-ray image I
Output: Classified image C
1. procedure FEATURE_EXTRACTION(dataset)
2.     for I in dataset do
3.          Read the image
              Icv2.imread(image_path)
4.          Resize the image
5.          Apply median filter to remove noise from the image
              Icv2.medianBlur(I, 3)
6.          Extract the features from the filtered image using the VGG16 model
              feature_extractorvgg16()
              ffeature_extractor(I)
7.     end for
8. end procedure
9. procedure CLASSIFICATION(dataset, f)
10.     Select the best features from the extracted features using mutual information statistic
            f sSelectKBest(mutual_info_classif)
11.     Split the dataset into training_dataset and testing_dataset
12.     Train the SVM model with the features selected for the training_dataset
              classifierSVC()
              C←classifier(fs)
13.     Classify the testing_dataset using the selected features into healthy and malignant images
14. end procedure