Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: matrix labels for color segmentation
Date: Fri, 21 Nov 2008 23:41:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <gg7gue$t7t$1@fred.mathworks.com>
References: <gg7f66$664$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1227310862 29949 172.30.248.35 (21 Nov 2008 23:41:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 21 Nov 2008 23:41:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1612112
Xref: news.mathworks.com comp.soft-sys.matlab:502439


Please consider this code instead of the previous posted.


    temp=zeros(HLS_RESHAPE_ROWS,HLS_RESHAPE_COLS);
    for x = 1:HLS_RESHAPE_ROWS
        if (HLS_RESHAPE(x,4) == label)
            temp(x,1:3) = HLS_RESHAPE(x,1:3);
        end;
    end
MU=mean(temp);

Thanks very much in advance to whom could help me.