objects

MATLAB/Octave project that identifies objects in a grayscale image

Usage

objects() - identify objects in a grayscale image

  SYNOPSIS:
  objects = objects(gray)

  ARGUMENTS:
  gray: grayscale image

  RETURNS:
  Conncomp structure with zero or more objects.

cc_trace() - plot object boundary traces

  SYNOPSIS:
  cc_trace(objects, bg)

  ARGUMENTS:
  objects: conncomp structure with objects to trace
  bg: (optional) background image to trace on

  This function is useful to visualize the output from objects().

Contributors

Compatibility

Examples

Each example uses a script similar to this one.

%
% BEGIN Example Script
%

% path to the objects package
addpath('objects-1.0');

% path that contains a modified `constants.m' file
addpath('.');

img = imread('image.jpg');
gray = rgb2gray(img);
obj = objects(gray);

figure;
imshow(img);

figure;
cc_trace(obj);

%
% END Example Script
%

Eggs

Changes to constants.m:

Other changes: none.

Golf Balls

Changes to constants.m:

Other changes:

Coins

Changes to constants.m:

Other changes:

Bricks

Changes to constants.m:

Other changes:

Mushroom

Changes to constants.m:

Other changes:

Grains

Changes to constants.m: none

Other changes:

Download

Name Size README
early-dev.tar.gz 21K README
objects-1.0.tar.gz 7.0K README