Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Projet 3 Traitement Image C
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yann Roberge
Projet 3 Traitement Image C
Commits
759751a7
Commit
759751a7
authored
3 years ago
by
Yann Roberge
Browse files
Options
Downloads
Patches
Plain Diff
Séparé les champs configurables dans un fichier à part
parent
933b324d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config.h
+36
-0
36 additions, 0 deletions
config.h
main.h
+1
-26
1 addition, 26 deletions
main.h
with
37 additions
and
26 deletions
config.h
0 → 100644
+
36
−
0
View file @
759751a7
/*********************************************************
* Config des images à corriger, leur emplacement
* et la correction à appliquer
* Date: 29-Mai-2021
* Auteur: Yann Roberge
*********************************************************/
#ifndef CONFIG_H
#define CONFIG_H
// Image definition
#define N_IMAGES 5
#define IMG_WIDTH 640
#define IMG_HEIGHT 360
#define IMG_AREA (IMG_WIDTH * IMG_HEIGHT)
#define IMG_DEPTH 8 // bits
#define IMG_N_CHANNELS 3 // RGB
#define BYTES_PER_PIXEL (IMG_N_CHANNELS * IMG_DEPTH / 8)
#define FRAME_BUF_SIZE (IMG_AREA * BYTES_PER_PIXEL)
// Files and directories
#define FRAME_IN_DIRECTORY "/run/user/1000/gvfs/sftp:host=odroid,user=nas/media/raid/frames/"
#define FRAME_OUT_DIRECTORY "/run/user/1000/gvfs/sftp:host=odroid,user=nas/media/raid/frames_out/"
#define FRAME_IN_FILENAME "frame"
#define FRAME_OUT_FILENAME "frameout"
// Corrections to apply
#define DELTA_HUE 60
#define DELTA_SATURATION 0.2
#define DELTA_VALUE 0
#endif
This diff is collapsed.
Click to expand it.
main.h
+
1
−
26
View file @
759751a7
...
...
@@ -9,32 +9,7 @@
#include
<stdint.h>
// Image definition
#define N_IMAGES 1
#define IMG_WIDTH 15
#define IMG_HEIGHT 11
//#define IMG_WIDTH 640
//#define IMG_HEIGHT 360
#define IMG_AREA (IMG_WIDTH * IMG_HEIGHT)
#define IMG_DEPTH 8 // bits
#define IMG_N_CHANNELS 3 // RGB
#define BYTES_PER_PIXEL (IMG_N_CHANNELS * IMG_DEPTH / 8)
#define FRAME_BUF_SIZE (IMG_AREA * BYTES_PER_PIXEL)
// Files and directories
#define FRAME_IN_DIRECTORY "/run/user/1000/gvfs/sftp:host=odroid,user=nas/media/raid/frames/"
#define FRAME_OUT_DIRECTORY "/run/user/1000/gvfs/sftp:host=odroid,user=nas/media/raid/frames_out/"
//#define FRAME_IN_FILENAME "frame"
#define FRAME_IN_FILENAME "color_test_pattern"
#define FRAME_OUT_FILENAME "color_test_pattern_out"
// Corrections to apply
#define DELTA_HUE 50
#define DELTA_SATURATION 0.2
#define DELTA_VALUE 50
#include
"config.h"
// Pixel struct unpacked for processing
typedef
struct
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment