Share

More
Content Aware Image Resizer Icon

Content Aware Image Resizer

by brain_recall


CAIR - Content Aware Image Resizer is a high performance, multi-threaded C++ library that performs image retargeting by seam carving. Please see http://brain.recall.googlepages.com/cair for more information.


http://c-a-i-r.sourceforge.net





Separate each tag with a space.

Release Date:

2009-06-03

Topics:

License:

Ratings and Reviews

  • Thumbs up:

    1
  • Thumbs down:

    0
100% of 1 user recommends this project

Be the first to post a text review of Content Aware Image Resizer. Rate and review a project by clicking thumbs up or thumbs down in the right column.

View all reviews

Project Feed

  • File released: /c-a-i-r/CAIR v2.19/CAIR_v2.19.zip

    posted 158 days ago

  • c-a-i-r CAIR v2.19 file released: CAIR_v2.19.zip

    //CAIR v2.19 Changelog: // - Single-threaded Energy_Map(), which surprisingly gave a 35% speed boost. My attempts at multithreading this function became a bottleneck. // If anyone has any idea on how to successfully multithread this algorithm, please let me know.

    posted 158 days ago

  • File released: /c-a-i-r/CAIR v2.18/CAIR_v2.18.zip

    posted 171 days ago

  • c-a-i-r CAIR v2.18 file released: CAIR_v2.18.zip

    posted 171 days ago

  • File released: /c-a-i-r/CAIR v2.17/CAIR_MT_v2.17.zip

    posted 374 days ago

  • c-a-i-r CAIR v2.17 file released: CAIR_MT_v2.17.zip

    //CAIR v2.17 Changelog: // - Ditched vectors for dynamic arrays, for about a 15% performance boost. // - Added some headers into CAIR_CML.h to fix some compiler errors with new versions of g++. (Special thanks to Alexandre Prokoudine) // - Added CAIR_Threads(), which allows the ability to dynamically change the number of threads CAIR will use. // NOTE: Don't ever call CAIR_Threads() while CAIR() is processing an image, unless you're a masochist. // - Added CAIR_callback parameters to CAIR(), CAIR_Removal(), and CAIR_HD(). This function pointer will be called every cycle, // passing the function the percent complete (0 to 1). If the function returns false, then the resize is canceled. // Then, CAIR(), CAIR_Removal(), and CAIR_HD() would also return a false, leaving the destination image/weights in an unknown state. // Set to NULL if this does not need to be used.

    posted 374 days ago

  • Speed Demon

    Well, well, well. CAIR v2.16 managed to pull a rabbit out of the hat. I reworked my threading so that things remain persistent instead of destroying them after each seam. On smaller images, I found a speed increase of just over 50%. The larger the images, the less the poor threading hurt it, but its still above 20%. If I would have known that was such a serious issue it would have been dealt with long ago. Oh well. On a related note, I'm probably going to be shelving CAIR for awhile. I'm going to try to start CAVR - Content Aware Video Retargeting. CAVR will hopefully implement a few ideas from the doctors and bring seam carving to videos. I already have quite a few ideas for it. Perhaps the biggest challenge is finding a suitable video library that I can use for testing purposes (much in the same way I just use EasyBMP for CAIR). My requirements for a video library would be: - Open source C++ - Cross-platform - The ability to grab a pixel value from a frame - Read and write SOME kind of video format (I really don't care which, would prefer uncompressed AVI) - Easy to use If you have any suggestions, please email me at brain.recall@gmail.com

    posted by brain_recall 387 days ago

  • File released: /c-a-i-r/CAIR v2.16/CAIR_MT_v2.16.zip

    posted 388 days ago

  • c-a-i-r CAIR v2.16 file released: CAIR_MT_v2.16.zip

    //CAIR v2.16 Changelog: // - A long overdue overhaul of the threading system yielded about a 40% performance boost. All threads, semaphores, and mutexes are kept around for // as long as possible, instead of destroying them every step. // - I stumbled across a bug in CAIR_Add() where some parts of the artificial weight matrix weren't being updated, creating slightly incorrect images. // - Comment overhauls to reflect the new threading.

    posted 389 days ago

  • File released: /c-a-i-r/CAIR v2.15.1/CAIR_MT_v2.15.1.zip

    posted 473 days ago

Rate and Review

Would you recommend this project?






<

Related Projects

Content Aware Image Resizer Actions

Thanks for your rating!

Would you also like to write a review?





Skip Review