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

 채택된 답변

Greg Heath
Greg Heath 2013년 10월 18일
편집: Greg Heath 2013년 10월 23일

0 개 추천

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

추가 답변 (1개)

Yasir
Yasir 2013년 10월 18일

0 개 추천

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

Greg Heath
Greg Heath 2013년 10월 19일
PLEASE USE THE COMMENT BOX, NOT THE ANSWER BOX FOR FOLLOW UP QUESTIONS AND COMMENTS.
NOT ONLY IS IT CONFUSING, IT MESSES UP MATLABS QUESTION/ANSWER/COMMENT BEAN COUNTING.
THANKS.
GREG
I don't understand your confusion. If an I dimensional input column vector corresponds to an O dimensional target output column vector, the dimensions of the input and output target matrices are
[ I N ] = size(input)
[ O N ] = size(target)
[ X, T ] = wine_dataset;
[ I N ] = size(X)
[ O N ] = size(T)
whos X T
I = 13
N = 178
O = 3
N = 178
Name Size Bytes Class Attributes
T 3x178 4272 double
X 13x178 18512 double
Hope this helps.
Greg
Yasir
Yasir 2013년 10월 19일
apology okay i will try to overcome it Thanks a lot Greg
Image Analyst
Image Analyst 2013년 10월 29일
I marked Greg's answer as accepted for you because you forgot to.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

질문:

2013년 10월 17일

댓글:

2013년 10월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by