CNF:Weighted Mesh To Image: Difference between revisions

From crtc.cs.odu.edu
Jump to navigation Jump to search
Spyridon97 (talk | contribs)
Spyridon97 (talk | contribs)
Line 27: Line 27:
'''Left: Mesh, Middle: Algorithm Result. Right: Image'''  
'''Left: Mesh, Middle: Algorithm Result. Right: Image'''  


# KNN, number of points = 4, power = 1.5
=== KNN, number of points = 4, power = 1.5 ===


<gallery mode="packed" heights=250px>
<gallery mode="packed" heights=250px>
Line 35: Line 35:
</gallery>
</gallery>


## Mean Weighted pixel value difference: 0.000395461
# Mean Weighted pixel value difference: 0.000395461
## Average Hausdorff Distance: 0.030885
# Average Hausdorff Distance: 0.030885
## Similarity Index: 0.986463
# Similarity Index: 0.986463


# Cell Points, number of points = 4, power = 1.5
=== Cell Points, number of points = 4, power = 1.5 ===
<gallery mode="packed" heights=250px>
<gallery mode="packed" heights=250px>
File:NT-image.png
File:NT-image.png
Line 45: Line 45:
File:NT-mesh.png
File:NT-mesh.png
</gallery>
</gallery>
## Mean Weighted pixel value difference: 0.0002258
## Average Hausdorff Distance: 0.030885
## Similarity Index: 0.986463


# Intersection of KNN and Cell points, number of points = 5, power = 1.5
# Mean Weighted pixel value difference: 0.0002258
# Average Hausdorff Distance: 0.030885
# Similarity Index: 0.986463
 
=== Intersection of KNN and Cell points, number of points = 5, power = 1.5 ===
<gallery mode="packed" heights=250px>
<gallery mode="packed" heights=250px>
File:NT-image.png
File:NT-image.png
Line 56: Line 57:
</gallery>
</gallery>


## Mean Weighted pixel value difference: 0.000273839
# Mean Weighted pixel value difference: 0.000273839
## Average Hausdorff Distance: 0.030885
# Average Hausdorff Distance: 0.030885
## Similarity Index: 0.986463
# Similarity Index: 0.986463
 
# Cell points with probing weights, number of points = 4, power = 1.5


=== Cell points with probing weights, number of points = 4, power = 1.5 ===
<gallery mode="packed" heights=250px>
<gallery mode="packed" heights=250px>
File:NT-image.png
File:NT-image.png
Line 68: Line 68:
</gallery>
</gallery>


## Mean Weighted pixel value difference: 9.17551e-05
# Mean Weighted pixel value difference: 9.17551e-05
## Average Hausdorff Distance: 0.030885
# Average Hausdorff Distance: 0.030885
## Similarity Index: 0.986463
# Similarity Index: 0.986463

Revision as of 11:47, 10 June 2020

Repository

  1. https://git-community.cs.odu.edu/crtc/Utilities/weightedmeshtoimage

Code

Summer 2020

Create a new image using the weights of:

  1. k-nearest-neighbors points as values in a weighted-mean, were weight[i] = 1 / distance(pixel-point, neighbor-point[i]) ^ power.
  2. cell points as values in a weighted-mean, were weight[i] = 1 / distance(pixel-point, cell-point[i]) ^ power.
    1. Note: If the pixel point is not inside a cell, then the algorithm `1` will be used.
  3. the intersection set of k-nearest-neighbors points and cell points as values in a weighted-mean, were weight[i] = 1 / distance(pixel-point, intersection-point[i]) ^ power.
    1. Note 1: If the Intersection set is empty, then the algorithm `2` will be used.
    2. Note 2: If the pixel point is not inside a cell, then the algorithm `1` will be used.
  4. cell points as values in a weighted-mean, were weight[i] = probe-value[i] based on the location of each pixel point inside a cell. Probing values are result of FindCell function.
    1. Note: If the pixel point is not inside a cell, then the algorithm `1` will be used.

Comparison Metrics:

  1. Mean Weighted pixel value difference
    1. File:MeanWeightedPixelValueFormula.png
  2. Average Hausdorff Distance (itk filter)
  3. Similarity Index (itk filter)

Examples

Summer 2020

Left: Mesh, Middle: Algorithm Result. Right: Image

KNN, number of points = 4, power = 1.5

  1. Mean Weighted pixel value difference: 0.000395461
  2. Average Hausdorff Distance: 0.030885
  3. Similarity Index: 0.986463

Cell Points, number of points = 4, power = 1.5

  1. Mean Weighted pixel value difference: 0.0002258
  2. Average Hausdorff Distance: 0.030885
  3. Similarity Index: 0.986463

Intersection of KNN and Cell points, number of points = 5, power = 1.5

  1. Mean Weighted pixel value difference: 0.000273839
  2. Average Hausdorff Distance: 0.030885
  3. Similarity Index: 0.986463

Cell points with probing weights, number of points = 4, power = 1.5

  1. Mean Weighted pixel value difference: 9.17551e-05
  2. Average Hausdorff Distance: 0.030885
  3. Similarity Index: 0.986463