Woolz Image Processing
Version 1.8.3
|
Registers patch objects and outputs a single object. More...
Data Structures | |
struct | _patchTree |
Typedefs | |
typedef struct _patchTree | WlzPatchTree |
Registers patch objects and outputs a single object.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
typedef struct _patchTree WlzPatchTree |
References _WlzObject::domain, _WlzDomain::i, _WlzIntervalDomain::kol1, _WlzIntervalDomain::lastkl, _WlzIntervalDomain::lastln, and _WlzIntervalDomain::line1.
Referenced by WlzGetPatchTree(), and WlzGetPatchTreeToDepth().
int sortPatch | ( | const void * | p1, |
const void * | p2 | ||
) |
References _patchTree::cost.
Referenced by WlzGetPatchTreeToDepth().
WlzPatchTree* WlzMakePatchTree | ( | WlzObject * | obj, |
int | depth, | ||
double | cost | ||
) |
References AlcCalloc(), _patchTree::cost, _patchTree::depth, _patchTree::obj, and WlzAssignObject().
Referenced by WlzGetPatchTreeToDepth().
WlzErrorNum WlzGetPatchTreeToDepth | ( | WlzObject ** | objs, |
int | nobjs, | ||
WlzPatchTree * | patchTree, | ||
int | depth | ||
) |
WlzPatchTree* WlzGetPatchTree | ( | WlzObject * | obj, |
WlzObject ** | objs, | ||
int | nobjs | ||
) |
WlzErrorNum WlzFreePatchTree | ( | WlzPatchTree * | patchTree | ) |
References AlcFree(), _patchTree::children, _patchTree::nchildren, _patchTree::obj, WLZ_ERR_NONE, and WlzFreeObj().
double WlzMass | ( | WlzObject * | obj, |
WlzErrorNum * | dstErr | ||
) |
References _WlzIntervalWSpace::colrmn, _WlzDomain::core, _WlzGreyP::dbp, _WlzObject::domain, _WlzGreyP::flp, _WlzGreyP::inp, _patchTree::obj, _WlzGreyWSpace::pixeltype, _WlzGreyP::shp, _WlzObject::type, _WlzGreyWSpace::u_grintptr, _WlzGreyP::ubp, WLZ_2D_DOMAINOBJ, WLZ_EMPTY_OBJ, WLZ_ERR_DOMAIN_NULL, WLZ_ERR_EOO, WLZ_ERR_GREY_TYPE, WLZ_ERR_NONE, WLZ_ERR_OBJECT_NULL, WLZ_ERR_OBJECT_TYPE, WLZ_GREY_DOUBLE, WLZ_GREY_FLOAT, WLZ_GREY_INT, WLZ_GREY_SHORT, WLZ_GREY_UBYTE, WlzInitGreyScan(), and WlzNextGreyInterval().
WlzObject* WlzGreyShift | ( | WlzObject * | obj, |
double | delta, | ||
WlzErrorNum * | dstErr | ||
) |
References _WlzIntervalWSpace::colrmn, _WlzValues::core, _WlzDomain::core, _WlzGreyP::dbp, _WlzObject::domain, _WlzGreyP::flp, _WlzGreyP::inp, _patchTree::obj, _WlzGreyWSpace::pixeltype, _WlzGreyP::shp, _WlzObject::type, _WlzCoreDomain::type, _WlzGreyWSpace::u_grintptr, _WlzGreyP::ubp, _WlzObject::values, WLZ_2D_DOMAINOBJ, WLZ_3D_DOMAINOBJ, WLZ_CLAMP, WLZ_EMPTY_DOMAIN, WLZ_EMPTY_OBJ, WLZ_ERR_DOMAIN_NULL, WLZ_ERR_EOO, WLZ_ERR_GREY_TYPE, WLZ_ERR_NONE, WLZ_ERR_OBJECT_NULL, WLZ_ERR_OBJECT_TYPE, WLZ_ERR_VALUES_NULL, WLZ_GREY_DOUBLE, WLZ_GREY_FLOAT, WLZ_GREY_INT, WLZ_GREY_SHORT, WLZ_GREY_UBYTE, WLZ_TRANS_OBJ, WlzCopyObject(), WlzFreeObj(), WlzInitGreyScan(), WlzMakeEmpty(), and WlzNextGreyInterval().
WlzObject* WlzGreyScale | ( | WlzObject * | obj, |
double | scale, | ||
WlzErrorNum * | dstErr | ||
) |
References _WlzIntervalWSpace::colrmn, _WlzValues::core, _WlzDomain::core, _WlzGreyP::dbp, _WlzObject::domain, _WlzGreyP::flp, _WlzGreyP::inp, _patchTree::obj, _WlzGreyWSpace::pixeltype, _WlzGreyP::shp, _WlzObject::type, _WlzCoreDomain::type, _WlzGreyWSpace::u_grintptr, _WlzGreyP::ubp, _WlzObject::values, WLZ_2D_DOMAINOBJ, WLZ_3D_DOMAINOBJ, WLZ_CLAMP, WLZ_EMPTY_DOMAIN, WLZ_EMPTY_OBJ, WLZ_ERR_DOMAIN_NULL, WLZ_ERR_EOO, WLZ_ERR_GREY_TYPE, WLZ_ERR_NONE, WLZ_ERR_OBJECT_NULL, WLZ_ERR_OBJECT_TYPE, WLZ_ERR_VALUES_NULL, WLZ_GREY_DOUBLE, WLZ_GREY_FLOAT, WLZ_GREY_INT, WLZ_GREY_SHORT, WLZ_GREY_UBYTE, WLZ_TRANS_OBJ, WlzCopyObject(), WlzFreeObj(), WlzInitGreyScan(), WlzMakeEmpty(), and WlzNextGreyInterval().
Referenced by WlzPatchTreeToObject(), and WlzRGBAGreyScale().
WlzObject* WlzRGBAGreyScale | ( | WlzObject * | obj, |
double * | scale, | ||
WlzErrorNum * | dstErr | ||
) |
References _WlzCompoundArray::o, _patchTree::obj, _WlzObject::type, WLZ_2D_DOMAINOBJ, WLZ_COMPOUND_ARR_1, WLZ_ERR_NONE, WLZ_ERR_OBJECT_NULL, WLZ_ERR_OBJECT_TYPE, WLZ_ERR_VALUES_TYPE, WLZ_GREY_RGBA, WLZ_RGBA_SPACE_RGB, WlzCompoundToRGBA(), WlzFreeObj(), WlzGreyScale(), WlzGreyTypeFromObj(), WlzMakeCompoundArray(), and WlzRGBAToCompound().
Referenced by WlzPatchTreeToObject().
double WlzGreyMeanDifference | ( | WlzObject * | obj1, |
WlzObject * | obj2, | ||
double | samplePercent, | ||
WlzErrorNum * | dstErr | ||
) |
References _WlzIntervalWSpace::colrmn, _WlzGreyP::dbp, _WlzObject::domain, _WlzGreyP::flp, _WlzGreyP::inp, _WlzGreyWSpace::pixeltype, _WlzGreyP::rgbp, _WlzGreyP::shp, _WlzObject::type, _WlzGreyWSpace::u_grintptr, _WlzGreyP::ubp, _WlzObject::values, WLZ_ERR_GREY_TYPE, WLZ_ERR_NONE, WLZ_GREY_DOUBLE, WLZ_GREY_FLOAT, WLZ_GREY_INT, WLZ_GREY_RGBA, WLZ_GREY_SHORT, WLZ_GREY_UBYTE, WLZ_RGBA_BLUE_GET, WLZ_RGBA_GREEN_GET, WLZ_RGBA_RED_GET, WlzAssignValues(), WlzFreeObj(), WlzInitGreyScan(), WlzIntersect2(), WlzMakeMain(), and WlzNextGreyInterval().
Referenced by DumbRegMatch().
WlzErrorNum DumbRegMatch | ( | WlzDVertex2 * | shift, |
double * | matchVal, | ||
WlzObject * | obj1, | ||
WlzObject * | obj2, | ||
WlzIVertex2 | maxShift | ||
) |
References _WlzIVertex2::vtX, _WlzIVertex2::vtY, WLZ_ERR_NONE, WlzGreyMeanDifference(), and WlzShiftObject().
WlzPatchTree* WlzPatchTreeUnalignedChild | ( | WlzPatchTree * | patchTree, |
int | depth, | ||
WlzDVertex2 * | shift | ||
) |
int WlzPatchMaxDepth | ( | WlzPatchTree * | patchTree | ) |
References _patchTree::children, _patchTree::depth, and _patchTree::nchildren.
WlzErrorNum WlzRegisterPatchTreeBF | ( | WlzPatchTree * | patchTree | ) |
WlzErrorNum WlzRegisterPatchTreeDF | ( | WlzPatchTree * | patchTree | ) |
References _WlzIVertex2::vtX, and WLZ_ERR_NONE.
WlzObject* WlzPatchTreeToObject | ( | WlzPatchTree * | patchTree, |
int | alignGreysFlg | ||
) |
References _patchTree::children, _WlzValues::core, _WlzObject::domain, _patchTree::nchildren, _patchTree::obj, _WlzObject::type, _WlzObject::values, WLZ_GREY_RGBA, WLZ_RGBA_SPACE_RGB, WlzAssignObject(), WlzDiffDomain(), WlzFreeObj(), WlzGreyScale(), WlzGreyStats(), WlzGreyTypeFromObj(), WlzIntersect2(), WlzMakeMain(), WlzRGBAGreyScale(), WlzRGBAGreyStats(), WlzShiftObject(), WlzUnionN(), _patchTree::xOff, and _patchTree::yOff.
int WlzPatchHitBuffers | ( | WlzPatchTree * | patchTree | ) |
References _patchTree::xOff.
WlzErrorNum WlzPrintPatchTree | ( | WlzPatchTree * | patchTree, |
FILE * | fp, | ||
int | depth | ||
) |
WlzErrorNum WlzPatchFacts | ( | WlzPatchTree * | patchTree, |
FILE * | fp, | ||
char ** | dstStr, | ||
int | verbose | ||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |
References _patchTree::depth, _patchTree::obj, and WLZ_ERR_NONE.