MCPcopy Create free account
hub / github.com/UbiquitousLearning/mllm / CenterCrop

Method CenterCrop

mllm/preprocessor/visual/ImageTransform.cpp:53–53  ·  view source on GitHub ↗

========================= CenterCrop =========================

Source from the content-addressed store, hash-verified

51
52// ========================= CenterCrop =========================
53CenterCrop::CenterCrop(int crop_size) : crop_h_(crop_size), crop_w_(crop_size) {}
54CenterCrop::CenterCrop(int crop_h, int crop_w) : crop_h_(crop_h), crop_w_(crop_w) {}
55
56Image CenterCrop::apply(const Image& input) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected