/* stb_image - v2.23 - public domain image loader - http://nothings.org/stb
no warranty implied; use at your own risk
Do this:
#define STB_IMAGE_IMPLEMENTATION
before you include this file in *one* C or C++ file to create the implementation.
// i.e. it should look like this:
#include ...
#include ...
#include ...
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
You can #define STBI_ASSERT(x) before the #include to avoid using assert.h.
And #define STBI_MALLOC, STBI_REALLOC, and STBI_FREE to avoid using malloc,realloc,free
QUICK NOTES:
Primarily of interest to game developers and other people who can
avoid problematic images and only need the trivial interface
JPEG baseline & progressive (12 bpc/arithmetic not supported, same as stock IJG lib)
PNG 1/2/4/8/16-bit-per-channel
TGA (not sure what subset, if a subset)
BMP non-1bpp, non-RLE
PSD (composited view only, no extra channels, 8/16 bit-per-channel)
GIF (*comp always reports as 4-channel)
HDR (radiance rgbE format)
PIC (Softimage PIC)
PNM (PPM and PGM binary only)
Animated GIF still needs a proper API, but here's one way to do it:
http://gist.github.com/urraka/685d9a6340b26b830d49
- decode from memory or through FILE (define STBI_NO_STDIO to remove code)
- decode from arbitrary I/O callbacks
- SIMD acceleration on x86/x64 (SSE2) and ARM (NEON)
Full documentation under "DOCUMENTATION" below.
LICENSE
See end of file for license information.
RECENT REVISION HISTORY:
2.23 (2019-08-11) fix clang static analysis warning
2.22 (2019-03-04) gif fixes, fix warnings
2.21 (2019-02-25) fix typo in comment
2.20 (2019-02-07) support utf8 filenames in Windows; fix warnings and platform ifdefs
2.19 (2018-02-11) fix warning
2.18 (2018-01-30) fix warnings
2.17 (2018-01-29) bugfix, 1-bit BMP, 16-bitness query, fix warnings
2.16 (2017-07-23) all functions have 16-bit variants; optimizations; bugfixes
2.15 (2017-03-18) fix png-1,2,4; all Imagenet JPGs; no runtime SSE detection on GCC
2.14 (2017-03-03) remove deprecated STBI_JPEG_OLD; fixes for Imagenet JPGs
2.13 (2016-12-04) experimental 16-bit API, only for PNG so far; fixes
2.12 (2016-04-02) fix typo in 2.11 PSD fix that caused crashes
2.11 (2016-04-02) 16-bit PNGS; enable SSE2 in non-gcc x64
RGB-format JPEG; remove white matting in PSD;
allocate large structures on the stack;
correct channel count for PNG & BMP
2.10 (2016-01-22) avoid warning introduced in 2.09
2.09 (2016-01-16) 16-bit TGA; comments in PNM files; STBI_REALLOC_SIZED
See end of file for full revision history.
============================ Contributors =========================
Image formats Extensions, features
Sean Barrett (jpeg, png, bmp) Jetro Lauha (stbi_info)
Nicolas Schulz (hdr, psd) Martin "SpartanJ" Golini (stbi_info)
Jonathan Dummer (tga) James "moose2000" Brown (iPhone PNG)
Jean-Marc Lienher (gif) Ben "Disch" Wenger (io callbacks)
Tom Seddon (pic) Omar Cornut (1/2/4-bit PNG)
Thatcher Ulrich (psd) Nicolas Guillemot (vertical flip)
Ken Miller (pgm, ppm) Richard Mitton (16-bit PSD)
github:urraka (animated gif) Junggon Kim (PNM comments)
Christopher Forseth (animated gif) Daniel Gibson (16-bit TGA)
socks-the-fox (16-bit PNG)
Jeremy Sawicki (handle all ImageNet JPGs)
Optimizations & bugfixes Mikhail Morozov (1-bit BMP)
Fabian "ryg" Giesen Anael Seghezzi (is-16-bit query)
Arseny Kapoulkine
John-Mark Allen
Carmelo J Fdez-Aguera
Bug & warning fixes
Marc LeBlanc David Woo Guillaume George Martins Mozeiko
Christpher Lloyd Jerry Jansson Joseph Thomson Phil Jordan
Dave Moore Roy Eltham Hayaki Saito Nathan Reed
Won Chun Luke Graham Johan Duparc Nick Verigakis
the Horde3D community Thomas Ruf Ronny Chevalier github:rlyeh
Janez Zemva John Bartholomew Michal Cichon github:romigrou
Jonathan Blow Ken Hamada Tero Hanninen github:svdijk
Laurent Gomila Cort Stratton Sergio Gonzalez github:snagar
Aruelien Pocheville Thibault Reuille Cass Everitt github:Zelex
Ryamond Barbiero Paul Du Bois Engin Manap github:grim210
Aldo Culquicondor Philipp Wiesemann Dale Weiler github:sammyhw
Oriol Ferrer Mesia Josh Tobin Matthew Gregan github:phprus
Julian Raschke Gregory Mullen Baldur Karlsson github:poppolopoppo
Christian Floisand Kevin Schmidt JR Smith github:darealshinji
Blazej Dariusz Roszkowski github:Michaelangel007
*/
#ifndef STBI_INCLUDE_STB_IMAGE_H
#define STBI_INCLUDE_STB_IMAGE_H
// DOCUMENTATION
//
// Limitations:
// - no 12-bit-per-channel JPEG
// - no JPEGs with arithmetic coding
// - GIF always returns *comp=4
//
// Basic usage (see HDR discussion below for HDR usage):
// int x,y,n;
// unsigned char *data = stbi_load(filename, &x, &y, &n, 0);
// // ... process data if not NULL ...
// // ... x = width, y = height, n = # 8-bit components per pixel ...
// // ... replace '0' with '1'..'4' to force that many components per pixel
// // ... but 'n' will always be the number that it would have been if you said 0
// stbi_image_free(data)
//
// Standard parameters:
// int *x -- outputs image width in pixels
// int *y -- outputs image height in pixels
// int *channels_in_file -- outputs # of image components in image file
// int desired_channels -- if non-zero, # of image components requested in result
//
// The return value from an image loader is an 'unsigned char *' which points
// to the pixel data, or NULL on an allocation failure or if the image is
// corrupt or invalid. The pixel data consists of *y scanlines of *x pixels,
// with each pixel consisting of N interleaved 8-bit components; the first
// pixel pointed to is top-left-most in the image. There is no padding between
// image scanlines or between pixels, regardless of format. The number of
// components N is 'desired_channels' if desired_channels is non-zero, or
// *channels_in_file otherwise. If desired_channels is non-zero,
// *channels_in_file has the number of components that _would_ have been
// output otherwise. E.g. if you set desired_channels to 4, you will always
// get RGBA output, but you can check *channels_in_file to see if it's trivially
// opaque because e.g. there were only 3 channels in the source image.
//
// An output image with N components has the following components interleaved
// in this order in each pixel:
//
// N=#comp components
// 1 grey
// 2 grey, alpha
// 3 red, green, blue
// 4 red, green, blue, alpha
//
// If image loading fails for any reason, the return value will be NULL,
// and *x, *y, *channels_in_file will be unchanged. The function
// stbi_failure_reason() can be queried for an extremely brief, end-user
// unfriendly explanation of why the load failed. Define STBI_NO_FAILURE_STRINGS
// to avoid compiling these strings at all, and STBI_FAILURE_USERMSG to get slightly
// more user-friendly ones.
//
// Paletted PNG, BMP, GIF, and PIC images are automatically depalettized.
//
// ===================================
没有合适的资源?快使用搜索试试~ 我知道了~
基于yolov8的rknn板端C++部署源码.zip
共571个文件
hpp:303个
h:102个
xml:44个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 117 浏览量
2024-04-10
16:06:43
上传
评论 1
收藏 33.49MB ZIP 举报
温馨提示
【资源说明】 1、该资源包括项目的全部源码,下载可以直接使用! 2、本项目适合作为计算机、数学、电子信息等专业的课程设计、期末大作业和毕设项目,作为参考资料学习借鉴。 3、本资源作为“参考资料”如果需要实现其他功能,需要能看懂代码,并且热爱钻研,自行调试。 基于yolov8的瑞芯微rknn板端C++部署源码.zip 基于yolov8的瑞芯微rknn板端C++部署源码.zip 基于yolov8的瑞芯微rknn板端C++部署源码.zip 基于yolov8的瑞芯微rknn板端C++部署源码.zip 基于yolov8的瑞芯微rknn板端C++部署源码.zip 基于yolov8的瑞芯微rknn板端C++部署源码.zip 基于yolov8的瑞芯微rknn板端C++部署源码.zip 基于yolov8的瑞芯微rknn板端C++部署源码.zip 基于yolov8的瑞芯微rknn板端C++部署源码.zip 基于yolov8的瑞芯微rknn板端C++部署源码.zip 基于yolov8的瑞芯微rknn板端C++部署源码.zip 基于yolov8的瑞芯微rknn板端C++部署源码.zip 基于yolov8的瑞芯微rknn板端C++部署源码.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于yolov8的rknn板端C++部署源码.zip (571个子文件)
libopencv_dnn.a 10.16MB
liblibprotobuf.a 6.85MB
liblibprotobuf.a 6.09MB
libopencv_core.a 6MB
libopencv_imgproc.a 5.86MB
libopencv_imgproc.a 5.15MB
libopencv_core.a 5.11MB
libIlmImf.a 2.8MB
libIlmImf.a 2.58MB
libopencv_calib3d.a 2.19MB
libopencv_calib3d.a 1.85MB
libopencv_features2d.a 1.26MB
libtegra_hal.a 1.12MB
libtegra_hal.a 1.07MB
libopencv_features2d.a 1.06MB
libopencv_imgcodecs.a 946KB
liblibwebp.a 887KB
libopencv_imgcodecs.a 810KB
liblibtiff.a 809KB
liblibwebp.a 670KB
liblibtiff.a 591KB
liblibjasper.a 581KB
libopencv_video.a 546KB
liblibpng.a 493KB
liblibjpeg-turbo.a 486KB
libopencv_video.a 454KB
liblibjasper.a 417KB
liblibpng.a 362KB
liblibjpeg-turbo.a 360KB
libzlib.a 157KB
libzlib.a 117KB
libquirc.a 26KB
libquirc.a 22KB
Android.bp 747B
main.cc 9KB
postprocess.cc 7KB
OpenCVConfig.cmake 13KB
OpenCVConfig.cmake 13KB
OpenCVModules-release.cmake 8KB
OpenCVModules-release.cmake 8KB
OpenCVModules.cmake 6KB
OpenCVModules.cmake 6KB
OpenCVConfig-version.cmake 418B
OpenCVConfig-version.cmake 418B
Android.go 3KB
stb_image.h 257KB
core_c.h 128KB
core_c.h 128KB
stb_image_resize.h 113KB
types_c.h 70KB
types_c.h 70KB
stb_image_write.h 65KB
imgproc_c.h 51KB
imgproc_c.h 51KB
kmeans_index.h 36KB
videoio_c.h 36KB
rknn_api.h 28KB
dist.h 27KB
hierarchical_clustering_index.h 26KB
im2d.h 24KB
cvdef.h 22KB
cvdef.h 22KB
autotuned_index.h 21KB
kdtree_single_index.h 20KB
calib3d_c.h 20KB
calib3d_c.h 20KB
kdtree_index.h 19KB
im2d_hardware.h 19KB
lsh_table.h 18KB
types_c.h 18KB
types_c.h 18KB
cv_cpu_helper.h 17KB
cv_cpu_helper.h 17KB
rga.h 17KB
lsh_index.h 15KB
result_set.h 15KB
im2d_type.h 13KB
tracking_c.h 11KB
tracking_c.h 11KB
index_testing.h 11KB
highgui_c.h 11KB
any.h 8KB
hdf5.h 7KB
allocator.h 6KB
RgaMutex.h 6KB
composite_index.h 6KB
nn_index.h 6KB
objdetect_c.h 6KB
all_indices.h 6KB
drmrga.h 6KB
saving.h 6KB
simplex_downhill.h 6KB
cv_cpu_dispatch.h 6KB
cv_cpu_dispatch.h 6KB
imgcodecs_c.h 5KB
imgcodecs_c.h 5KB
cvconfig.h 5KB
cvconfig.h 5KB
cap_ios.h 5KB
dynamic_bitset.h 4KB
共 571 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
土豆片片
- 粉丝: 1838
- 资源: 5647
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功