|
AlbumShaper 1.0a3
|
#include <edgeDetect.h>

Public Member Functions | |
| EdgeDetect (QImage *image) | |
| ~EdgeDetect () | |
| int | getNumClusters () |
| PixelCluster * | getClusters () |
| int * | getSmoothHist () |
| int * | getPeaks () |
| QImage * | getEdgeImage () |
| int * | getClusterMap () |
Private Member Functions | |
| void | allocateAndInitObjects () |
| void | constructGSLClut () |
| void | fillLumMapAndLumHistogram () |
| void | smoothLumHistogram () |
| void | computeEdgeMagAndGSLCmaps () |
| int | pixelLum (int x, int y) |
| void | findPixelClusters () |
| void | computeClusterStatistics () |
| void | computeClusterThresholds () |
| void | constructEdgeImage () |
| void | deallocateObjects () |
Private Attributes | |
| LUTentry | LUT [256] |
| QImage * | image |
| int | lumHist [256] |
| luminosity and smooth luminosity histograms | |
| int | smoothLumHist [256] |
| int | clusterPeaks [256] |
| int * | lumMap |
| float * | edgeMagMap |
| int * | GSLCmap |
| int | numClusters |
| PixelCluster * | clusters |
| int | minClusterSize |
| int | maxClusterSize |
Definition at line 45 of file edgeDetect.h.
| EdgeDetect::EdgeDetect | ( | QImage * | image | ) |
Definition at line 195 of file edgeDetect.cpp.
References allocateAndInitObjects(), computeClusterStatistics(), computeClusterThresholds(), computeEdgeMagAndGSLCmaps(), constructEdgeImage(), fillLumMapAndLumHistogram(), findPixelClusters(), image, and smoothLumHistogram().
| EdgeDetect::~EdgeDetect | ( | ) |
Definition at line 222 of file edgeDetect.cpp.
References deallocateObjects().
|
private |
Definition at line 267 of file edgeDetect.cpp.
References clusterPeaks, constructGSLClut(), edgeMagMap, GSLCmap, image, lumHist, lumMap, and smoothLumHist.
Referenced by EdgeDetect().
|
private |
Definition at line 549 of file edgeDetect.cpp.
References clusterPeaks, clusters, PixelCluster::edgeMagHistogram, edgeMagMap, image, lumMap, MAX, maxClusterSize, PixelCluster::meanMode, MIN, minClusterSize, PixelCluster::mode, numClusters, PixelCluster::numPixels, PixelCluster::pixelCount, and PixelCluster::totalEdgeMagnitude.
Referenced by EdgeDetect().
|
private |
Definition at line 621 of file edgeDetect.cpp.
References B, b, PixelCluster::beta, clusters, PixelCluster::edgeThreshold, MAX, PixelCluster::mode, and numClusters.
Referenced by EdgeDetect().
|
private |
Definition at line 344 of file edgeDetect.cpp.
References edgeMagMap, GSLCmap, image, and pixelLum().
Referenced by EdgeDetect().
|
private |
Definition at line 862 of file edgeDetect.cpp.
References blurImage(), clusters, LUTentry::direction, edgeMagMap, PixelCluster::edgeThreshold, enhanceImageContrast(), LUTentry::ESF, GSLCmap, height, image, lumMap, LUT, numClusters, and width.
Referenced by EdgeDetect().
|
private |
Definition at line 974 of file edgeDetect.cpp.
References LUTentry::direction, LUTentry::ESF, and LUT.
Referenced by allocateAndInitObjects().
|
private |
Definition at line 966 of file edgeDetect.cpp.
References clusters, edgeMagMap, GSLCmap, and lumMap.
Referenced by ~EdgeDetect().
|
private |
Definition at line 294 of file edgeDetect.cpp.
References image, lumHist, and lumMap.
Referenced by EdgeDetect().
|
private |
Definition at line 432 of file edgeDetect.cpp.
References clusterPeaks, clusters, MAX, PixelCluster::maxLuminance, MIN, PixelCluster::minLuminance, numClusters, and smoothLumHist.
Referenced by EdgeDetect().
| int * EdgeDetect::getClusterMap | ( | ) |
Definition at line 244 of file edgeDetect.cpp.
References clusters, image, lumMap, and numClusters.
Referenced by GrainEditor::GrainEditor().
| PixelCluster * EdgeDetect::getClusters | ( | ) |
| QImage * EdgeDetect::getEdgeImage | ( | ) |
| int EdgeDetect::getNumClusters | ( | ) |
Definition at line 227 of file edgeDetect.cpp.
References numClusters.
Referenced by GrainEditor::GrainEditor().
| int * EdgeDetect::getPeaks | ( | ) |
| int * EdgeDetect::getSmoothHist | ( | ) |
|
private |
Definition at line 425 of file edgeDetect.cpp.
References image, lumMap, MAX, and MIN.
Referenced by computeEdgeMagAndGSLCmaps().
|
private |
Definition at line 318 of file edgeDetect.cpp.
References FILTER_SIZE, lumHist, and smoothLumHist.
Referenced by EdgeDetect().
|
private |
Definition at line 100 of file edgeDetect.h.
Referenced by allocateAndInitObjects(), computeClusterStatistics(), findPixelClusters(), and getPeaks().
|
private |
Definition at line 113 of file edgeDetect.h.
Referenced by computeClusterStatistics(), computeClusterThresholds(), constructEdgeImage(), deallocateObjects(), findPixelClusters(), getClusterMap(), and getClusters().
|
private |
Definition at line 106 of file edgeDetect.h.
Referenced by allocateAndInitObjects(), computeClusterStatistics(), computeEdgeMagAndGSLCmaps(), constructEdgeImage(), and deallocateObjects().
|
private |
Definition at line 109 of file edgeDetect.h.
Referenced by allocateAndInitObjects(), computeEdgeMagAndGSLCmaps(), constructEdgeImage(), and deallocateObjects().
|
private |
Definition at line 93 of file edgeDetect.h.
Referenced by allocateAndInitObjects(), computeClusterStatistics(), computeEdgeMagAndGSLCmaps(), constructEdgeImage(), EdgeDetect(), fillLumMapAndLumHistogram(), getClusterMap(), getEdgeImage(), and pixelLum().
|
private |
luminosity and smooth luminosity histograms
Definition at line 96 of file edgeDetect.h.
Referenced by allocateAndInitObjects(), fillLumMapAndLumHistogram(), and smoothLumHistogram().
|
private |
Definition at line 103 of file edgeDetect.h.
Referenced by allocateAndInitObjects(), computeClusterStatistics(), constructEdgeImage(), deallocateObjects(), fillLumMapAndLumHistogram(), getClusterMap(), and pixelLum().
|
private |
Definition at line 90 of file edgeDetect.h.
Referenced by constructEdgeImage(), and constructGSLClut().
|
private |
Definition at line 116 of file edgeDetect.h.
Referenced by computeClusterStatistics().
|
private |
Definition at line 116 of file edgeDetect.h.
Referenced by computeClusterStatistics().
|
private |
Definition at line 112 of file edgeDetect.h.
Referenced by computeClusterStatistics(), computeClusterThresholds(), constructEdgeImage(), findPixelClusters(), getClusterMap(), and getNumClusters().
|
private |
Definition at line 97 of file edgeDetect.h.
Referenced by allocateAndInitObjects(), findPixelClusters(), getSmoothHist(), and smoothLumHistogram().