Turi Create  4.0
image_utils.hpp
1 /* Copyright © 2020 Apple Inc. All rights reserved.
2  *
3  * Use of this source code is governed by a BSD-3-clause license that can
4  * be found in the LICENSE.txt file or at
5  * https://opensource.org/licenses/BSD-3-Clause
6  */
7 
8 #pragma once
9 
10 #include <core/data/image/image_type.hpp>
11 #include <ml/neural_net/Image.hpp>
12 
13 namespace turi {
14 
15 /// Converts from the Turi image_type to the neural_net Image type.
16 std::shared_ptr<neural_net::Image> wrap_image(const image_type& image);
17 
18 } // namespace turi
std::shared_ptr< neural_net::Image > wrap_image(const image_type &image)
Converts from the Turi image_type to the neural_net Image type.