このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
niqe
Naturalness Image Quality Evaluator (NIQE) 非参照画質スコア
説明
例
既定の特徴モデルを使用した NIQE スコアの計算
既定のモデルを使用して、自然イメージとその歪んだバージョンの NIQE スコアを計算します。
イメージをワークスペースに読み取ります。ノイズとブレのある歪みを持つイメージのコピーを作成します。
I = imread('lighthouse.png'); Inoise = imnoise(I,'salt & pepper',0.02); Iblur = imgaussfilt(I,2);
イメージを表示します。
figure montage({I,Inoise,Iblur},'Size',[1 3]) title('Original Image | Noisy Image | Blurry Image')
既定のモデルを使用して、各イメージの NIQE スコアを計算します。スコアを表示します。
niqeI = niqe(I);
fprintf('NIQE score for original image is %0.4f.\n',niqeI)
NIQE score for original image is 2.5455.
niqeInoise = niqe(Inoise);
fprintf('NIQE score for noisy image is %0.4f.\n',niqeInoise)
NIQE score for noisy image is 10.8770.
niqeIblur = niqe(Iblur);
fprintf('NIQE score for blurry image is %0.4f.\n',niqeIblur)
NIQE score for blurry image is 5.2661.
元の歪みのないイメージは、知覚的品質が最も高く、NIQE スコアが最も低くなります。
カスタム特徴モデルを使用した NIQE スコアの計算
一連の自然イメージをイメージ データストアに読み込みます。これらのイメージは、Image Processing Toolbox™ に付属しており、'imdata' という名前のディレクトリにあります。
setDir = fullfile(toolboxdir('images'),'imdata'); imds = imageDatastore(setDir,'FileExtensions',{'.jpg'});
イメージ データストアを使用してカスタム NIQE モデルを学習させます。
model = fitniqe(imds);
Extracting features from 33 images. ... Completed 9 of 33 images. Time: Calculating... . Completed 11 of 33 images. Time: 00:27 of 03:29 .... Completed 27 of 33 images. Time: 00:38 of 00:47 . Done.
自然シーンのイメージを読み取ります。イメージを表示します。
I = imread('car1.jpg');
imshow(I)
カスタム モデルを使用して、イメージの NIQE スコアを計算します。スコアを表示します。
niqeI = niqe(I,model);
fprintf('NIQE score for the image is %0.4f.\n',niqeI)
NIQE score for the image is 2.6700.
入力引数
出力引数
アルゴリズム
NIQE は、イメージ A
から計算された NSS ベースの特徴と、モデルを学習させるために使用されるイメージ データベースから取得された特徴との間の距離を測定します。この特徴は、多次元ガウス分布としてモデル化されます。
参照
[1] Mittal, A., R. Soundararajan, and A. C. Bovik. "Making a Completely Blind Image Quality Analyzer." IEEE Signal Processing Letters. Vol. 22, Number 3, March 2013, pp. 209–212.
バージョン履歴
R2017b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)