mirror of https://github.com/alibaba/MNN.git
				
				
				
			
		
			
				
	
	
		
			24 lines
		
	
	
		
			608 B
		
	
	
	
		
			C++
		
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			608 B
		
	
	
	
		
			C++
		
	
	
	
//
 | 
						|
//  ImageSampler.hpp
 | 
						|
//  MNN
 | 
						|
//
 | 
						|
//  Created by MNN on 2018/12/24.
 | 
						|
//  Copyright © 2018, Alibaba Group Holding Limited
 | 
						|
//
 | 
						|
 | 
						|
#ifndef ImageSampler_hpp
 | 
						|
#define ImageSampler_hpp
 | 
						|
#include <MNN/ImageProcess.hpp>
 | 
						|
namespace MNN {
 | 
						|
namespace CV {
 | 
						|
class ImageSampler {
 | 
						|
public:
 | 
						|
    typedef void (*PROC)(const unsigned char* source, unsigned char* dest, Point* points, size_t sta, size_t count,
 | 
						|
                         size_t capacity, size_t iw, size_t ih, size_t yStride);
 | 
						|
 | 
						|
    static PROC choose(ImageFormat format, Filter type, bool identity);
 | 
						|
};
 | 
						|
} // namespace CV
 | 
						|
} // namespace MNN
 | 
						|
#endif /* ImageSampler_hpp */
 |