53 SequenceSet const& set, std::shared_ptr<utils::BaseOutputTarget> target
55 auto image = make_image_( set );
57 writer.write( image, target );
69 set.
size() * pixel_height_,
70 max_line * pixel_width_,
75 for(
size_t r = 0; r < set.
size(); ++r ) {
76 auto const& seq = set[r];
79 for(
size_t c = 0; c < seq.length(); ++c ) {
83 auto color_it = color_map_.find( seq[c] );
84 if( color_it != color_map_.end() ) {
85 pixel = color_it->second;
89 for(
size_t ph = 0; ph < pixel_height_; ++ph ) {
92 for(
size_t pw = 0; pw < pixel_width_; ++pw ) {
93 image( r * pixel_height_ + ph, c * pixel_width_ + pw ) = pixel;
120 throw std::invalid_argument(
"Pixel height has to be 1 or more." );
122 pixel_height_ = value;
128 return pixel_height_;
134 throw std::invalid_argument(
"Pixel width has to be 1 or more." );
136 pixel_width_ = value;