Is there any way to use as single input an image (256x256 pixels) and get output of single value using Matlab neural network toolbox


Sure, import the image to the matlab workspace, divide the image matrix into two dimentional matrices like this:

matrix1 = yourimage(:,:,1);
matrix2 = yourimage(:,:,2);
matrix3 = yourimage(:,:,3);

each being one colour component-as nntool works with up to bidimensional matrices- and use them in the nntool.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.