link against magick and opencv