Darknet/YOLO v3.0-105-g631006a
Object Detection Framework
 
Loading...
Searching...
No Matches
Darknet::Image Struct Reference

The structure Darknet::Image is used to store a normalized RGB Darknet image. More...

#include "darknet_image.hpp"

Collaboration diagram for Darknet::Image:

Public Attributes

int c
 channel
 
float * data
 normalized floats
 
int h
 height
 
int w
 width
 

Detailed Description

The structure Darknet::Image is used to store a normalized RGB Darknet image.

The format is intended to be used for internal use by Darknet, but there are some situations where it may also be used or referenced externally via the Darknet API.

Moving forward starting with Darknet V3 (August 2024), where possible the emphasis will be to use OpenCV cv::Mat objects in the external-facing API instead of Darknet::Image.

Warning
Keep this structure as POD (plain-old-data) since there are many places in the old code where memory for these image objects is calloc'd. This was originally part of the old Darknet C API, which is why it exists this way and not as a class with methods.
See also
Darknet::load_image()
Darknet::copy_image()
Darknet::make_empty_image()
Darknet::make_image()
Darknet::free_image()

Member Data Documentation

◆ c

int Darknet::Image::c

channel

◆ data

float* Darknet::Image::data

normalized floats

◆ h

int Darknet::Image::h

height

◆ w

int Darknet::Image::w

width


The documentation for this struct was generated from the following file: