Hi
I would if it is possible in MATLAB to remove the black sides on the boarder of this image basically on right side and bottem side
Herein the code
close all;clc; %% Initalize the data
dataDir= fullfile('Data/');exts = {'.jpg','.png','.tif','BMP'}; imds = imageDatastore(fullfile(dataDir),...'IncludeSubfolders',true,'FileExtensions','.BMP','LabelSource','foldernames');countEachLabel(imds); [TrainData, TestData] = splitEachLabel(imds,0.5);size(TrainData);countEachLabel(TrainData);numImages = numel(TrainData.Files); for i = 1:numImages img = readimage(TrainData, i); img=rgb2gray(img); img3= im2double(imresize(img, [100 100], 'bicubic')); end
Best Answer