Error Level Analysis Image Processing

15 vues (au cours des 30 derniers jours)
Muhammad Karimata
Muhammad Karimata le 3 Sep 2015
Commenté : Nur Syawal le 20 Juil 2016
excuse me can anybody help me to made a some project which help me to compile an image with output error level of the image that has been compile,,,
i am really newbie as programmer and i had no idea how to convert a java program that successfully compile a Error Level Analysis... there many syntax really made me confuse and i tried to find what syntax in java that had same function in matlab,,
this is what i had been made "So Far" after UiGetfile
function [] = generate_ela(filename,quality)
%if nargin > 2 | nargin < 2
% error('usage: generate_ela(filename,quality)');
%end;
% img_orig = imread(filename);
tempfile = 'E:\img.jpg';
imwrite(img_orig,tempfile,'jpeg','Quality',quality);
temp = imread(tempfile);
delete(tempfile);
idiff = uint8(abs(double(img_orig)-double(temp))*30);
me = max(max(max(idiff)));
idiff = uint8(double(idiff)*255/double(me));
%imwrite(idiff,'ela.jpg');
figure; imshow(idiff);
if that some of syntax was wrong please warn me... thank you...
  1 commentaire
Nur Syawal
Nur Syawal le 20 Juil 2016
Skriptnya ada yang error bang bagian line 8 (imwrite(img_orig,tempfile,'jpeg','Quality',quality); kalau bisa dikirim ulang skriptnya yang lengkap bang :)

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Graphics Performance dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by