OOF2: The Manual
Name
Color (ColorGrouper) — Group pixels by examining RGB distributions.
Synopsis
ColorGrouper
(image
,sigma0
)
Details
-
Base class:
PixelGrouper
-
Parameters:
image
- Base groups on the colors in this image Type: The path to an existing
Image
object. sigma0
- Standard deviation in RGB values to assume for initial distributions Type: A real number.
Description
This is used by OOF.PixelGroup.AutoGroup to automatically
create PixelGroups
based on pixel color. Given two pixels, it
computes the distance between them by treating their RGB values as
coordinates in a 3D Euclidean space.
sigma0
is the initial standard deviation
assigned to a group containing a single pixel. It sets the scale
for how far apart colors have to be in RGB space in order to
considered to be significantly different. Using a small
sigma0
will lead to many small pixel groups
with little color variation within each group. Using a large
sigma0
will lead to fewer pixel groups with
more variation within each group.