Update StarImageProcessing.cpp

[skip ci]
This commit is contained in:
Kae 2024-12-27 22:06:33 +11:00
parent 45c89cefb6
commit aba77ed2b4

View File

@ -625,11 +625,11 @@ void processImageOperation(ImageOperation const& operation, Image& image, ImageR
scale = scale.piecewiseMax(Vec2F::filled(0.f)); scale = scale.piecewiseMax(Vec2F::filled(0.f));
} }
if (op->mode == ScaleImageOperation::Nearest) if (op->mode == ScaleImageOperation::Nearest)
image = scaleNearest(image, op->scale); image = scaleNearest(image, scale);
else if (op->mode == ScaleImageOperation::Bilinear) else if (op->mode == ScaleImageOperation::Bilinear)
image = scaleBilinear(image, op->scale); image = scaleBilinear(image, scale);
else if (op->mode == ScaleImageOperation::Bicubic) else if (op->mode == ScaleImageOperation::Bicubic)
image = scaleBicubic(image, op->scale); image = scaleBicubic(image, scale);
} else if (auto op = operation.ptr<CropImageOperation>()) { } else if (auto op = operation.ptr<CropImageOperation>()) {
image = image.subImage(Vec2U(op->subset.min()), Vec2U(op->subset.size())); image = image.subImage(Vec2U(op->subset.min()), Vec2U(op->subset.size()));