Lines Matching refs:img_idx
176 for (int img_idx = 0; img_idx < num_images; ++img_idx)
178 Size bl_per_img((images[img_idx].cols + bl_width_ - 1) / bl_width_,
179 (images[img_idx].rows + bl_height_ - 1) / bl_height_);
180 int bl_width = (images[img_idx].cols + bl_per_img.width - 1) / bl_per_img.width;
181 int bl_height = (images[img_idx].rows + bl_per_img.height - 1) / bl_per_img.height;
182 bl_per_imgs[img_idx] = bl_per_img;
188 Point bl_br(std::min(bl_tl.x + bl_width, images[img_idx].cols),
189 std::min(bl_tl.y + bl_height, images[img_idx].rows));
191 block_corners.push_back(corners[img_idx] + bl_tl);
192 block_images.push_back(images[img_idx](Rect(bl_tl, bl_br)));
193 block_masks.push_back(std::make_pair(masks[img_idx].first(Rect(bl_tl, bl_br)),
194 masks[img_idx].second));
208 for (int img_idx = 0; img_idx < num_images; ++img_idx)
210 Size bl_per_img = bl_per_imgs[img_idx];
211 gain_maps_[img_idx].create(bl_per_img, CV_32F);
214 Mat_<float> gain_map = gain_maps_[img_idx].getMat(ACCESS_WRITE);
220 sepFilter2D(gain_maps_[img_idx], gain_maps_[img_idx], CV_32F, ker, ker);
221 sepFilter2D(gain_maps_[img_idx], gain_maps_[img_idx], CV_32F, ker, ker);