|
Algorithm 1: Multiple-Criteria-based Patch Selection |
-
Input:
Image patch set,
Number of textual patches, T
Number of cluster centers, k
Number of patches per cluster, n
Number of iterations, N
// Edge-and-Texture-based patch selection
for
do
Calculate according to (2)
end for
Sort in descending order
-
Select the first T patches as edge and textual representatives:
// Semantic-content-based patch selection
for
do
end for
Form feature space from patch set
-
Perform K-Means clustering in feature space to obtain the k Cluster centroids:
until N iterations is exceeded
-
For each of the k centroids, select n nearest patches as semantic representatives:
-
Output:
Training patch set
|