Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Labo07_PGM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
damian.boquetec
Labo07_PGM
Commits
be83e800
Commit
be83e800
authored
4 years ago
by
damian.boquetec
Browse files
Options
Downloads
Patches
Plain Diff
1ère version des fichiers pgm.c et pgm.h
parent
6e9fd9d6
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
pgm.c
+18
-0
18 additions, 0 deletions
pgm.c
pgm.h
+32
-0
32 additions, 0 deletions
pgm.h
with
50 additions
and
0 deletions
pgm.c
+
18
−
0
View file @
be83e800
#include
"pgm.h"
pgm_error
pgm_read_from_file
(
pgm
*
p
,
char
*
filename
){
}
/*
pgm_error pgm_write_to_file(pgm *p, char *filename);
pgm_error pgm_negative(pgm *neg, const pgm *const orig);
pgm_error pgm_symmetry_hori(pgm *sym, const pgm *const orig);
pgm_error pgm_symmetry_vert(pgm *sym, const pgm *const orig);
pgm_error pgm_symmetry_cent(pgm *sym, const pgm *const orig);
pgm_error pgm_photomaton(pgm *photomaton, const pgm *const orig);
pgm_error pgm_crop(pgm *crop, const pgm *const orig, int32_t x0, int32_t x1, int32_t y0, int32_t y1);
pgm_error pmg_conv(pgm *conv, const pgm *const orig, const matrix *const kernel);
*/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pgm.h
+
32
−
0
View file @
be83e800
#ifndef PGM_H
#define PGM_H
#include
<stdio.h>
#include
<stdlib.h>
#include
<stdint.h>
#include
"matrix.h"
typedef
struct
_pgm
{
int32_t
max
;
matrix
pixels
;
}
pgm
;
typedef
enum
_pgm_error
{
success
,
failure
}
pgm_error
;
pgm_error
pgm_read_from_file
(
pgm
*
p
,
char
*
filename
);
pgm_error
pgm_write_to_file
(
pgm
*
p
,
char
*
filename
);
pgm_error
pgm_negative
(
pgm
*
neg
,
const
pgm
*
const
orig
);
pgm_error
pgm_symmetry_hori
(
pgm
*
sym
,
const
pgm
*
const
orig
);
pgm_error
pgm_symmetry_vert
(
pgm
*
sym
,
const
pgm
*
const
orig
);
pgm_error
pgm_symmetry_cent
(
pgm
*
sym
,
const
pgm
*
const
orig
);
pgm_error
pgm_photomaton
(
pgm
*
photomaton
,
const
pgm
*
const
orig
);
pgm_error
pgm_crop
(
pgm
*
crop
,
const
pgm
*
const
orig
,
int32_t
x0
,
int32_t
x1
,
int32_t
y0
,
int32_t
y1
);
pgm_error
pmg_conv
(
pgm
*
conv
,
const
pgm
*
const
orig
,
const
matrix
*
const
kernel
);
#endif
\ No newline at end of file
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