From: ImageAnalyst on
Thanks Walter - surprised you remembered that. You must have a good
memory.
From: Walter Roberson on
ImageAnalyst wrote:
> Thanks Walter - surprised you remembered that. You must have a good
> memory.

Heh. A search of sprint on mathworks.com shows only a few hits, the major one
of which is the commentary for your contribution.

This is the 21's century: you don't need to memorize anything anymore, you
just have to know how to find it ;-)
From: amin on
another error again :

??? Error using ==> regionprops>ParseInputs
This measurement is not a string: "49".This measurement is not a string: "47".This measurement is not a string: "48".This measurement is not a string: "48".This measurement is not a string: "48".This measurement is not a string: "48".This

Error in ==> regionprops at 114
[L, requestedStats] = ParseInputs(officialStats, varargin{:});

Error in ==> BlobsDemo at 90
blobMeasurements = regionprops(labeledImage, originalImage, 'all');
From: ImageAnalyst on
On Jun 10, 9:27 am, "amin " <bdra_a...(a)yahoo.fr> wrote:
> another error again :
> Error in ==> BlobsDemo at 90
> blobMeasurements = regionprops(labeledImage, originalImage, 'all');

----------------------------------------------------------------------------------------------------------------------------
amin:
Read the comments in my code:

% Get all the blob properties. Can only pass in originalImage in
version R2008a and later.
blobMeasurements = regionprops(labeledImage, originalImage, 'all');

You don't have R2008a - you have an earlier version. Thus you need to
make the modifications to make it work with your old version. This
would include removing "originalImage" from the argument list, and
some other modifications noted elsewhere in the code. For example:
% Find the mean of each blob. (R2008a has a better way where you can
pass the original image
% directly into regionprops. The way below works for all versions
including earlier versions.)
thisBlobsPixels = blobMeasurements(k).PixelIdxList; % Get list of
pixels in current blob.
meanGL = mean(originalImage(thisBlobsPixels)); % Find mean
intensity (in original image!)
meanGL2008a = blobMeasurements(k).MeanIntensity; % Mean again, but
only for version >= R2008a

You'll need to delete the meanGL2008a line. There may be other
modifications you need to do - I can't check because I don't have that
version. If you find more, let me know and I'll add them to the
comments.
Good luck,
ImageAnalyst


From: amin on
> If you find more, let me know and I'll add them to the
> comments.
> Good luck,
> ImageAnalyst

??? Reference to non-existent field 'MeanIntensity'.

Error in ==> BlobsDemo at 139
allBlobIntensities = [blobMeasurements.MeanIntensity];