Pixelating photographs with OpenCV

[ Nash’s source ] [ StackExchange: pkg-config ] [ imwrite ]

Compiling opencv code:

g++ example.cpp -o example `pkg-config --cflags --libs opencv`

For writing the image:

cv::imwrite("alpha.jpg", dst);

Besides, we can add some text on top:

Screen Shot 2015-05-19 at 9.40.36 PM

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s