How to include and use native imagemagick on server in Craft?
If you want to work with PECL imagick, which is the PHP wrapper for the ImageMagick library, then this should work:

$im = new \Imagick();


It's not namespaced, so it exists in the global namespace, which is what the \ does for you.