pidoko/textureClassification
0
1from pathlib import Path2import numpy as np3 4# Dynamically get the base path for dataset5BASE_PATH = Path(__file__).parent.resolve()6 7# Output directory for CSV files8OUTPUT_DIR = BASE_PATH / "features"9OUTPUT_DIR.mkdir(parents=True, exist_ok=True) # Ensure directory exists10 11# Image processing parameters12IMAGE_SIZE = (64, 64) # Resize images for consistency13 14# GLCM Parameters15DISTANCES = [1, 2, 3, 4]16ANGLES = [0, 0.25 * np.pi, 0.5 * np.pi, 0.75 * np.pi] # 0°, 45°, 90°, 135°17 18# LBP Parameters19LBP_RADIUS = 320LBP_POINTS = min(8 * LBP_RADIUS, 24)21LBP_METHOD = "uniform"22 23# Texture classes24TEXTURE_CLASSES = ["wood", "brick", "stone"]25 