Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I am trying to run an image tampering program based on MATLAB, however on my mac

ID: 3604998 • Letter: I

Question

I am trying to run an image tampering program based on MATLAB, however on my mac it doesn't seem to read all of the files. It gives me this error, can somebody please tell me what I am doing wrong? I even added to path but still doesn't work.

Here is the program image link: http://www.grip.unina.it/research/83-image-forensics/91-prnu-mrf.html

Undefined function or variable 'bm3d_thr Error in NoiseExtractBM3Dactual BM3D (line 350) y_hat bm3d_thr(z, hadper_trans_single_den, Nstep, N1, N2, lambda_thr2D, Error in NoiseExtractBM3D (line 30) [void Z-norm] actual-BM3D( 1, x( :,: , i), sigma, 'lc' ); = Error in makeResidueFun>@(x)NoiseExtractBM3D (x,vararginab) 1 of 2) Local statistics Error in genmtx correlation (line 35) residue getResidue (ing); Error in detect forgery mrf (line 48) [corr, p-corr] = genntx-correlation (ing, prnu, getResidue, hypothesis ); ernacr etes.ue Error in demo forgerylocalization (Line 43) mask_mrfdetect forgery mrf x_forged, pattern.prnu, getResidue, hypothesis, opt_mrf); >2

Explanation / Answer

cmake_minimum_required(VERSION 3.5) project(EmbedResource) function(embed_resources out_var) set(result) foreach(in_f ${ARGN}) file(RELATIVE_PATH src_f ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${in_f}) set(out_f "${PROJECT_BINARY_DIR}/${in_f}.c") add_custom_command(OUTPUT ${out_f} COMMAND embed-resource ${out_f} ${src_f} DEPENDS ${in_f} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} COMMENT "Building binary file for embedding ${out_f}" VERBATIM) list(APPEND result "${out_f}") endforeach() set(${out_var} "${result}" PARENT_SCOPE) endfunction() find_package(Boost COMPONENTS filesystem REQUIRED) add_executable(embed-resource embedresource.cpp) target_link_libraries(embed-resource ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY}) set(EMBED_RES_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote