| 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 I←cv2.imread(image_path) 4. Resize the image 5. Apply median filter to remove noise from the image I←cv2.medianBlur(I, 3) 6. Extract the features from the filtered image using the VGG16 model feature_extractor←vgg16() f←feature_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 s←SelectKBest(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 classifier←SVC() C←classifier(fs) 13. Classify the testing_dataset using the selected features into healthy and malignant images 14. end procedure |