Indexing cannot yield multiple results
1 visualizzazione (ultimi 30 giorni)
dpb il 19 Feb 2015
Clearly Main must be something other than a 3D array at this time or you've aliased size or somesuch.
return? If that doesn't clarify things, then
and try again.
Image Analyst il 19 Feb 2015
In addition to dpb's suggestions, which will probably fix it. You got the names wrong. The first dimension returned by size() is the y dimension (rows), not the x dimension. Thinking that the order x,y is the same as row,column is a very common error. So use one of these calls
[rows, columns, numberOfColorChannels] = size(yourImage);
[ySize, xSize, zSize] = size(yourImage);
but NOT the way you did it.