Compare commits
No commits in common. "556e1ad825f4f9f3408feeef030ee0deaa8578fc" and "4e7debaae602412ed968ae46beda6bd9a7ed5157" have entirely different histories.
556e1ad825
...
4e7debaae6
30
README.md
30
README.md
@ -7,6 +7,7 @@ voire même des [films flous](Fonderie/).
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
Il y a une [description](http://la.buvette.org/photos/cumul/) bien plus
|
Il y a une [description](http://la.buvette.org/photos/cumul/) bien plus
|
||||||
pas trop longue pour les curieux, et un début de
|
pas trop longue pour les curieux, et un début de
|
||||||
[documentation](http://la.buvette.org/photos/cumul/the_floatimg_hack.pdf)
|
[documentation](http://la.buvette.org/photos/cumul/the_floatimg_hack.pdf)
|
||||||
@ -21,20 +22,7 @@ Par ailleurs, d'autres expérimentations sont
|
|||||||
sur le traitement et l'assemblage de ces images floues dans le but de faire
|
sur le traitement et l'assemblage de ces images floues dans le but de faire
|
||||||
des films flous.
|
des films flous.
|
||||||
|
|
||||||
## *Show us the code !*
|
*En avant vers l'infini, et au-delà...*
|
||||||
|
|
||||||
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
|
## Dépendances
|
||||||
|
|
||||||
@ -50,6 +38,7 @@ apt install libv4l2-dev
|
|||||||
apt install libcfitsio-dev
|
apt install libcfitsio-dev
|
||||||
apt install libnetpbm-dev
|
apt install libnetpbm-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
Bon, OK, je suis en train de changer de machine, et ça serait vraiment
|
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 :
|
cool d'avoir juste une ligne à c'n'p, donc voila :
|
||||||
|
|
||||||
@ -57,6 +46,7 @@ cool d'avoir juste une ligne à c'n'p, donc voila :
|
|||||||
apt install libtiff-dev libpnglite-dev liblo-dev libv4l2-dev \
|
apt install libtiff-dev libpnglite-dev liblo-dev libv4l2-dev \
|
||||||
libcfitsio-dev libnetpbm-dev
|
libcfitsio-dev libnetpbm-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
Il est probable que j'en oublie.
|
Il est probable que j'en oublie.
|
||||||
Et ya Debian qui change des trucs, alors, ça marche plus, du
|
Et ya Debian qui change des trucs, alors, ça marche plus, du
|
||||||
genre que c'est la deuxième fois que ça m'arrive.
|
genre que c'est la deuxième fois que ça m'arrive.
|
||||||
@ -73,9 +63,9 @@ coté de pkg-config.
|
|||||||
|
|
||||||
Certains outils externes sont aussi utiles :
|
Certains outils externes sont aussi utiles :
|
||||||
|
|
||||||
- gnuplot, pour analyser des données,
|
- gnuplot
|
||||||
- ImageMagick, parce que Brunus aime ça,
|
- ImageMagick
|
||||||
- LaTeX, pour la (trop maigre) documentation.
|
- LaTeX
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
@ -83,10 +73,4 @@ Encore trop légère, mais déja [présente](doc/).
|
|||||||
C'est à vous de compiler le
|
C'est à vous de compiler le
|
||||||
[PDF](http://la.buvette.org/photos/cumul/the_floatimg_hack.pdf)
|
[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...*
|
*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
|
Attention, tout ce qui se trouve dans ce répertoire ne sont que des
|
||||||
essais. Certains aboutissent, et sont migrés vers `lib/`, `funcs/` ou
|
essais. Certains aboutissent, et sont migrés vers `funcs/` ou
|
||||||
`tools/`, d'autre échouent et restent trainer dans le coin en attente
|
`tools/`, d'autre échouent et restent trainer dans le coin en attente
|
||||||
du retour de l'inspiration.
|
du retour de l'inspiration.
|
||||||
|
|
||||||
|
10
floatimg.h
10
floatimg.h
@ -20,7 +20,7 @@
|
|||||||
* https://git.tetalab.org/tTh/FloatImg
|
* https://git.tetalab.org/tTh/FloatImg
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define FIMG_VERSION (242)
|
#define FIMG_VERSION (237)
|
||||||
#define RELEASE_NAME ("noname")
|
#define RELEASE_NAME ("noname")
|
||||||
#define PATCH_LEVEL ("aaaa")
|
#define PATCH_LEVEL ("aaaa")
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ typedef struct {
|
|||||||
* fimg file header (short version)
|
* fimg file header (short version)
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char magic[8]; /* this is not an asciiz ! */
|
char magic[8]; // this is not an asciiz !
|
||||||
int32_t w, h, t;
|
int32_t w, h, t;
|
||||||
/*
|
/*
|
||||||
* what about the packing ?
|
* what about the packing ?
|
||||||
@ -192,6 +192,7 @@ int fimg_split_level(FloatImg *src, FloatImg *dst, int notused);
|
|||||||
int fimg_make_triptyq(FloatImg *src, FloatImg *dst, int notused);
|
int fimg_make_triptyq(FloatImg *src, FloatImg *dst, int notused);
|
||||||
|
|
||||||
/* funcs/rotate.c module */
|
/* funcs/rotate.c module */
|
||||||
|
/* #coronamaison */
|
||||||
int fimg_rotate_90(FloatImg *src, FloatImg *dst, int notused);
|
int fimg_rotate_90(FloatImg *src, FloatImg *dst, int notused);
|
||||||
|
|
||||||
int fimg_killrgb_v(FloatImg *src, FloatImg *dst, int k);
|
int fimg_killrgb_v(FloatImg *src, FloatImg *dst, int k);
|
||||||
@ -260,6 +261,7 @@ int fimg_halfsize_1(FloatImg *src, FloatImg *dst, int notused);
|
|||||||
int fimg_extractor(FloatImg *in, FloatImg *out, FimgArea51 *rect);
|
int fimg_extractor(FloatImg *in, FloatImg *out, FimgArea51 *rect);
|
||||||
int fimg_mirror(FloatImg *src, FloatImg *dst, int notused);
|
int fimg_mirror(FloatImg *src, FloatImg *dst, int notused);
|
||||||
|
|
||||||
|
|
||||||
int fimg_incrustator_0(FloatImg *psrc, FloatImg *pdst,
|
int fimg_incrustator_0(FloatImg *psrc, FloatImg *pdst,
|
||||||
int xpos, int ypos, int flags);
|
int xpos, int ypos, int flags);
|
||||||
|
|
||||||
@ -283,9 +285,6 @@ int fimg_show_metadata(FimgMetaData *pmd, char *title, int notused);
|
|||||||
int fimg_default_metadata(FimgMetaData *pmd, int bla);
|
int fimg_default_metadata(FimgMetaData *pmd, int bla);
|
||||||
int fimg_get_metadata_from_file(char *fname, FimgMetaData *pmd);
|
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_R_as_fits(FloatImg *src, char *outname, int flags);
|
||||||
int fimg_save_G_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);
|
int fimg_save_B_as_fits(FloatImg *src, char *outname, int flags);
|
||||||
@ -294,6 +293,7 @@ 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_write_as_tiff(FloatImg *src, char *fname, int flags);
|
||||||
int fimg_save_as_exr(FloatImg *src, char *outname, int flags);
|
int fimg_save_as_exr(FloatImg *src, char *outname, int flags);
|
||||||
|
|
||||||
|
|
||||||
/* mathematics operations */
|
/* mathematics operations */
|
||||||
float fimg_get_plane_maxvalue(FloatImg *psrc, char plane);
|
float fimg_get_plane_maxvalue(FloatImg *psrc, char plane);
|
||||||
float fimg_get_maxvalue(FloatImg *head);
|
float fimg_get_maxvalue(FloatImg *head);
|
||||||
|
@ -19,8 +19,6 @@ OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \
|
|||||||
|
|
||||||
#---------------------------------------------------------------
|
#---------------------------------------------------------------
|
||||||
|
|
||||||
all: t
|
|
||||||
|
|
||||||
tests.o: tests.c tests.h $(DEPS)
|
tests.o: tests.c tests.h $(DEPS)
|
||||||
gcc $(COPT) -I/usr/include/netpbm -c $<
|
gcc $(COPT) -I/usr/include/netpbm -c $<
|
||||||
|
|
||||||
|
@ -21,10 +21,9 @@ Et en particulier, elle brotche sur ceux produits par ImageMagick !
|
|||||||
|
|
||||||
### FITS
|
### FITS
|
||||||
|
|
||||||
Ce [format de fichier](https://heasarc.gsfc.nasa.gov/docs/software/fitsio/c/c_user/node1.html)
|
Ce format de fichier est utilisé en astronomie.
|
||||||
est utilisé en astronomie.
|
|
||||||
Son support est actuellement minimaliste.
|
|
||||||
|
|
||||||
|
https://heasarc.gsfc.nasa.gov/docs/software/fitsio/c/c_user/node1.html
|
||||||
|
|
||||||
### DICOM
|
### DICOM
|
||||||
|
|
||||||
|
@ -21,6 +21,5 @@ typedef struct {
|
|||||||
int reserved;
|
int reserved;
|
||||||
} FloatImg;
|
} 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