powered by
Function to do integer down/up sampling of an image. Used for finesampling.
profitDownsample(img, factor) profitUpsample(img, factor)
The image matrix to be down-sampled.
Integer down- or up-sampling factor.
Returns the down/up-sampled image matrix.
profitMakeModel
# NOT RUN { #Need to add one. # }
Run the code above in your browser using DataLab