update
This commit is contained in:
@@ -38,7 +38,6 @@ from metrics.objective.full_reference import color
|
||||
from metrics.objective.full_reference import frequency
|
||||
from metrics.objective.full_reference import gradient
|
||||
from metrics.objective.full_reference import information
|
||||
from metrics.objective.full_reference import models
|
||||
from metrics.objective.full_reference import perceptual
|
||||
from metrics.objective.full_reference import pixel
|
||||
from metrics.objective.full_reference import region
|
||||
@@ -87,7 +86,6 @@ def compute(ref_dir, dist_dir, out_file):
|
||||
frequency_results = frequency.compute_all(ref_img_path, dist_img_path)
|
||||
gradient_results = gradient.compute_all(ref_img_path, dist_img_path)
|
||||
information_results = information.compute_all(ref_img_path, dist_img_path)
|
||||
models_results = models.compute_all(ref_img_path, dist_img_path)
|
||||
perceptual_results = perceptual.compute_all(ref_img_path, dist_img_path)
|
||||
pixel_results = pixel.compute_all(ref_img_path, dist_img_path)
|
||||
region_results = region.compute_all(ref_img_path, dist_img_path)
|
||||
@@ -100,7 +98,6 @@ def compute(ref_dir, dist_dir, out_file):
|
||||
**frequency_results,
|
||||
**gradient_results,
|
||||
**information_results,
|
||||
**models_results,
|
||||
**perceptual_results,
|
||||
**pixel_results,
|
||||
**region_results,
|
||||
@@ -128,9 +125,9 @@ def compute(ref_dir, dist_dir, out_file):
|
||||
|
||||
def main():
|
||||
'''main function'''
|
||||
#reference_dir = 'images/reference/'
|
||||
#distorted_dir = 'images/distorted/'
|
||||
#output_file = 'results/sheets/iqa_objective.csv'
|
||||
reference_dir = 'data/reference/'
|
||||
distorted_dir = 'data/distorted/'
|
||||
output_file = 'results/iqa_objective.csv'
|
||||
|
||||
# If you want to start fresh, uncomment the following line to clear the file
|
||||
# open(output_file, 'w', encoding='utf-8').close()
|
||||
|
||||
Reference in New Issue
Block a user