std::vector<int> nbImagesInMosaic;
for(int i = 0; i < NbImagesInMosaicVector.size(); i++){
- nbImagesInMosaic.push_back(NbImagesInMosaicVector[i]);
nbImagesPerRow.push_back( ceil(sqrt(NbImagesInMosaicVector[i])) );
+ nbImagesInMosaic.push_back(NbImagesInMosaicVector[i]);
}
if(imageInput.size() != NbImagesInMosaicVector.size()){
for(int j = NbImagesInMosaicVector.size(); j < imageInput.size(); j++) {
- nbImagesInMosaic.push_back( NbImagesInMosaicVector[NbImagesInMosaicVector.size()-1] );
nbImagesPerRow.push_back( ceil(sqrt(NbImagesInMosaicVector[NbImagesInMosaicVector.size()-1])) );
+ nbImagesInMosaic.push_back( NbImagesInMosaicVector[NbImagesInMosaicVector.size()-1] );
}
}