Compare commits
3 Commits
4e7debaae6
...
556e1ad825
Author | SHA1 | Date | |
---|---|---|---|
![]() |
556e1ad825 | ||
![]() |
23842595fd | ||
![]() |
6069c45b5a |
30
README.md
30
README.md
@ -7,7 +7,6 @@ voire même des [films flous](Fonderie/).
|
||||
|
||||

|
||||
|
||||
|
||||
Il y a une [description](http://la.buvette.org/photos/cumul/) bien plus
|
||||
pas trop longue pour les curieux, et un début de
|
||||
[documentation](http://la.buvette.org/photos/cumul/the_floatimg_hack.pdf)
|
||||
@ -22,7 +21,20 @@ Par ailleurs, d'autres expérimentations sont
|
||||
sur le traitement et l'assemblage de ces images floues dans le but de faire
|
||||
des films flous.
|
||||
|
||||
*En avant vers l'infini, et au-delà...*
|
||||
## *Show us the code !*
|
||||
|
||||
Il y a plusieurs répertoires contenant le code source, en voici
|
||||
la liste :
|
||||
|
||||
* [lib](lib/README.md) : le noyau du système, fonctions de base.
|
||||
* [funcs](funcs/README.md) : fonctions de support : export, traitement
|
||||
filtrage, effets...
|
||||
* [tools](tools/README.md) : utilitaires divers, outils de debug et gadgets.
|
||||
* [v4l2](v4l2/README.md): gestion des webcams sous Linux.
|
||||
* [experiment](experiment/README.md) : fonctions en chantier, qui migreront
|
||||
un jour dans d'autres catégories.
|
||||
* [contrib](contrib/README.md) : des choses peu ou pas maintenues.
|
||||
|
||||
|
||||
## Dépendances
|
||||
|
||||
@ -38,7 +50,6 @@ apt install libv4l2-dev
|
||||
apt install libcfitsio-dev
|
||||
apt install libnetpbm-dev
|
||||
```
|
||||
|
||||
Bon, OK, je suis en train de changer de machine, et ça serait vraiment
|
||||
cool d'avoir juste une ligne à c'n'p, donc voila :
|
||||
|
||||
@ -46,7 +57,6 @@ cool d'avoir juste une ligne à c'n'p, donc voila :
|
||||
apt install libtiff-dev libpnglite-dev liblo-dev libv4l2-dev \
|
||||
libcfitsio-dev libnetpbm-dev
|
||||
```
|
||||
|
||||
Il est probable que j'en oublie.
|
||||
Et ya Debian qui change des trucs, alors, ça marche plus, du
|
||||
genre que c'est la deuxième fois que ça m'arrive.
|
||||
@ -63,9 +73,9 @@ coté de pkg-config.
|
||||
|
||||
Certains outils externes sont aussi utiles :
|
||||
|
||||
- gnuplot
|
||||
- ImageMagick
|
||||
- LaTeX
|
||||
- gnuplot, pour analyser des données,
|
||||
- ImageMagick, parce que Brunus aime ça,
|
||||
- LaTeX, pour la (trop maigre) documentation.
|
||||
|
||||
## Documentation
|
||||
|
||||
@ -73,4 +83,10 @@ Encore trop légère, mais déja [présente](doc/).
|
||||
C'est à vous de compiler le
|
||||
[PDF](http://la.buvette.org/photos/cumul/the_floatimg_hack.pdf)
|
||||
|
||||
## TODO
|
||||
|
||||
https://berthub.eu/articles/posts/always-do-this-floating-point/
|
||||
|
||||
## Conclusion
|
||||
|
||||
*Your mileage may vary...*
|
||||
|
@ -1,7 +1,7 @@
|
||||
# EXPÉRIMENTATIONS ÀLC
|
||||
# Expérimentations ÀLC
|
||||
|
||||
Attention, tout ce qui se trouve dans ce répertoire ne sont que des
|
||||
essais. Certains aboutissent, et sont migrés vers `funcs/` ou
|
||||
essais. Certains aboutissent, et sont migrés vers `lib/`, `funcs/` ou
|
||||
`tools/`, d'autre échouent et restent trainer dans le coin en attente
|
||||
du retour de l'inspiration.
|
||||
|
||||
|
10
floatimg.h
10
floatimg.h
@ -20,7 +20,7 @@
|
||||
* https://git.tetalab.org/tTh/FloatImg
|
||||
*/
|
||||
|
||||
#define FIMG_VERSION (237)
|
||||
#define FIMG_VERSION (242)
|
||||
#define RELEASE_NAME ("noname")
|
||||
#define PATCH_LEVEL ("aaaa")
|
||||
|
||||
@ -72,7 +72,7 @@ typedef struct {
|
||||
* fimg file header (short version)
|
||||
*/
|
||||
typedef struct {
|
||||
char magic[8]; // this is not an asciiz !
|
||||
char magic[8]; /* this is not an asciiz ! */
|
||||
int32_t w, h, t;
|
||||
/*
|
||||
* what about the packing ?
|
||||
@ -192,7 +192,6 @@ int fimg_split_level(FloatImg *src, FloatImg *dst, int notused);
|
||||
int fimg_make_triptyq(FloatImg *src, FloatImg *dst, int notused);
|
||||
|
||||
/* funcs/rotate.c module */
|
||||
/* #coronamaison */
|
||||
int fimg_rotate_90(FloatImg *src, FloatImg *dst, int notused);
|
||||
|
||||
int fimg_killrgb_v(FloatImg *src, FloatImg *dst, int k);
|
||||
@ -261,7 +260,6 @@ int fimg_halfsize_1(FloatImg *src, FloatImg *dst, int notused);
|
||||
int fimg_extractor(FloatImg *in, FloatImg *out, FimgArea51 *rect);
|
||||
int fimg_mirror(FloatImg *src, FloatImg *dst, int notused);
|
||||
|
||||
|
||||
int fimg_incrustator_0(FloatImg *psrc, FloatImg *pdst,
|
||||
int xpos, int ypos, int flags);
|
||||
|
||||
@ -285,6 +283,9 @@ int fimg_show_metadata(FimgMetaData *pmd, char *title, int notused);
|
||||
int fimg_default_metadata(FimgMetaData *pmd, int bla);
|
||||
int fimg_get_metadata_from_file(char *fname, FimgMetaData *pmd);
|
||||
|
||||
/*
|
||||
* FITS, an image fileformat for astronomy
|
||||
*/
|
||||
int fimg_save_R_as_fits(FloatImg *src, char *outname, int flags);
|
||||
int fimg_save_G_as_fits(FloatImg *src, char *outname, int flags);
|
||||
int fimg_save_B_as_fits(FloatImg *src, char *outname, int flags);
|
||||
@ -293,7 +294,6 @@ int fimg_save_plane_as_fits(FloatImg *src, char *oname, char plane, int flags);
|
||||
int fimg_write_as_tiff(FloatImg *src, char *fname, int flags);
|
||||
int fimg_save_as_exr(FloatImg *src, char *outname, int flags);
|
||||
|
||||
|
||||
/* mathematics operations */
|
||||
float fimg_get_plane_maxvalue(FloatImg *psrc, char plane);
|
||||
float fimg_get_maxvalue(FloatImg *head);
|
||||
|
@ -19,6 +19,8 @@ OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \
|
||||
|
||||
#---------------------------------------------------------------
|
||||
|
||||
all: t
|
||||
|
||||
tests.o: tests.c tests.h $(DEPS)
|
||||
gcc $(COPT) -I/usr/include/netpbm -c $<
|
||||
|
||||
|
@ -21,9 +21,10 @@ Et en particulier, elle brotche sur ceux produits par ImageMagick !
|
||||
|
||||
### FITS
|
||||
|
||||
Ce format de fichier est utilisé en astronomie.
|
||||
Ce [format de fichier](https://heasarc.gsfc.nasa.gov/docs/software/fitsio/c/c_user/node1.html)
|
||||
est utilisé en astronomie.
|
||||
Son support est actuellement minimaliste.
|
||||
|
||||
https://heasarc.gsfc.nasa.gov/docs/software/fitsio/c/c_user/node1.html
|
||||
|
||||
### DICOM
|
||||
|
||||
|
@ -21,5 +21,6 @@ typedef struct {
|
||||
int reserved;
|
||||
} FloatImg;
|
||||
```
|
||||
|
||||
For the current state of this struc, look at the main
|
||||
[header file](../floatimg.h), located at the root of the project.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user