jcmp: My image compression format (w/ wavelets)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

26 lines
589 B

#include <includes.hpp>
#include <utilities.hpp>
#include <boost/assign.hpp>
#include "periodic_iterator.hpp"
#include "striding_iterator.hpp"
template <typename Iterator>
void print10(Iterator it){
for(int i = 0; i < 10; ++i){
std::cout << *it++ << std::endl;
}
}
int main(){
using namespace boost::assign;
std::vector<int> v;
v += 0,1,2,3,4;
print10(periodic(v.begin(), v.end()));
std::cout << "***\n";
print10(periodic(strided(v.begin(), 1), strided(v.end(), 1)) + 2);
std::cout << "***\n";
std::copy(v.begin(), v.end(), std::ostream_iterator<int>(std::cout, "\n"));
}