MATLAB Answers

0

how to convert a single grayscale image into the color in a data tore i have mixed color of images in the datastore both black and white and color how?

Asked by baddi bala krishna on 6 Aug 2019
Latest activity Edited by baddi bala krishna on 6 Aug 2019
importing the alexnet framework
net = alexnet
ly = net.Layers
inlayer = ly(1)
insz = inlayer.InputSize
creating the out layer
outlayer=ly(end)
creating the data store......
store = imageDatastore("images/",'FileExtensions',{'.jpg','.jpeg'})
Extracting the files.........
fnames = store.Files
REad an image
img = readimage(store,7)
augmented image data store
auds = augmentedImageDatastore([227 227],store)
classifying the images..
preds = classify(net,auds)
Display images in store what you are imported
montage(store)
converting the gray scale images to the color 3d images
auds = augmentedImageDatastore([227 227],store,'ColorPreprocessning','gray2rgb')

  0 Comments

Sign in to comment.

0 Answers