output for augmentation results

1 visualización (últimos 30 días)
new_user
new_user el 13 de Dic. de 2021
Respondida: Sahil Jain el 20 de Dic. de 2021
Size = net.Layers(1).InputSize(1:2);
Resized_Training_image = augmentedImageDatastore(Input_Layer_Size, Training_image, 'ColorPreprocessing','gray2rgb');
figure
imshow(Resized_Training_image)
%% I want to see what is the effect after using augmentation but I can't see the images & it's properties. But getting the error.
imshow(Resized_Training_image)
Unrecognized function or variable 'Resized_Training_image'.

Respuestas (1)

Sahil Jain
Sahil Jain el 20 de Dic. de 2021
Hi Arijit. To augment a single image and view the output, you can use the code snippet as shown below. You can change the "Training_image" and "Input_Layer_Size" variables to suit your use case
Training_image = imread("image.jpg");
Input_Layer_Size = [200, 200, 3];
Resized_Training_image = augmentedImageDatastore(Input_Layer_Size, Training_image, 'ColorPreprocessing','gray2rgb');
resized_image = read(Resized_Training_image);
imshow(cell2mat(resized_image{1,1}));

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by