mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Fix interpolating the predicted mask
This commit is contained in:
parent
c9efc4da76
commit
b442a3dc8e
@ -125,7 +125,7 @@ int main(int argc, char** argv) try
|
||||
|
||||
const auto mask = seg_net(input_chip);
|
||||
|
||||
rgb_pixel random_color(
|
||||
const rgb_pixel random_color(
|
||||
rnd.get_random_8bit_number(),
|
||||
rnd.get_random_8bit_number(),
|
||||
rnd.get_random_8bit_number()
|
||||
@ -136,7 +136,7 @@ int main(int argc, char** argv) try
|
||||
static_cast<int>(chip_details.rect.width())
|
||||
);
|
||||
|
||||
dlib::resize_image(mask, resized_mask);
|
||||
dlib::resize_image(mask, resized_mask, interpolate_nearest_neighbor());
|
||||
|
||||
for (int r = 0; r < resized_mask.nr(); ++r)
|
||||
for (int c = 0; c < resized_mask.nc(); ++c)
|
||||
|
Loading…
Reference in New Issue
Block a user