Data format in neural network

6 Ansichten (letzte 30 Tage)
Yasir
Yasir am 17 Okt. 2013
Kommentiert: Image Analyst am 29 Okt. 2013
Hi all, Kindly i really appreciate your help , i have a plan to make skin color segmentation by using neural network , i just have a problem how to format my database ,input vectors it's gona be YCbCr color space and the target 1,0 skin,non skin
Thanks

Akzeptierte Antwort

Greg Heath
Greg Heath am 18 Okt. 2013
Bearbeitet: Greg Heath am 23 Okt. 2013
N pairs of I-dimensional inputs and 1-dimensional targets.
[ I N ] = size(inputs)
[ O N ] = size(targets) % O =1
net = patternnet; % First consider defaults
help patternnet
If you have an older version of the NNTBX, try newpr.
help newpr
You may want to practice on the classification/pattern-recognition data in
help nndatasets.
Thank you for formally accepting my answer
Greg

Weitere Antworten (1)

Yasir
Yasir am 18 Okt. 2013
Hi Greg, i really appreciate your kind reply but still now not so clear let's suppose that RGB (119,79,53) these pixels represent skin color while (200,34,23) nonskin are am going to format it as below
[119 79 53;200 34 23] %input vectors [1 1 1 ;0 0 0]%output vector ------ 1- skin , 0-nonskin
and then i fed up these to NN to train it , i really appreciate your clarification because the examples in MATLAB for wine classification the DB not so clear just [X,T]=wine_dataset; % X input ,T target
Thanks for your cooperation
  4 Kommentare
Yasir
Yasir am 19 Okt. 2013
apology okay i will try to overcome it Thanks a lot Greg
Image Analyst
Image Analyst am 29 Okt. 2013
I marked Greg's answer as accepted for you because you forgot to.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by