This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
neuroimagen:fbb [2019/06/07 20:29] osotolongo |
neuroimagen:fbb [2021/03/10 10:24] (current) osotolongo [Correccion de movimiento] |
||
---|---|---|---|
Line 81: | Line 81: | ||
</ | </ | ||
+ | y me hago un scriptcillo para convertir los DCM, escoger el adecuado usando //fslinfo// y hacer un // | ||
+ | |||
+ | <code perl update_fbb.pl> | ||
+ | # | ||
+ | |||
+ | use strict; | ||
+ | use warnings; | ||
+ | use NEURO qw(load_study); | ||
+ | use Data::Dump qw(dump); | ||
+ | use File:: | ||
+ | |||
+ | my $study = " | ||
+ | my %std = load_study($study); | ||
+ | my $src_dir = "/ | ||
+ | my $output_dir = $std{' | ||
+ | my @other_exts = (" | ||
+ | |||
+ | opendir(my $dh, $src_dir) || die " | ||
+ | my @adqs = grep {/ | ||
+ | closedir $dh; | ||
+ | |||
+ | foreach my $adq (sort @adqs) { | ||
+ | (my $subject = $adq) =~ s/ | ||
+ | my $order = ' | ||
+ | print " | ||
+ | system($order); | ||
+ | my @conv_files = find(file => ' | ||
+ | foreach my $nii_file (@conv_files){ | ||
+ | $order = ' | ||
+ | my %xinfo; | ||
+ | foreach (qx/ | ||
+ | my ( $key, $value ) = / | ||
+ | $xinfo{$key} =$value; | ||
+ | } | ||
+ | if($xinfo{" | ||
+ | print " | ||
+ | $order = ' | ||
+ | print " | ||
+ | system($order); | ||
+ | } | ||
+ | } | ||
+ | print " | ||
+ | $order = "rm $std{' | ||
+ | system($order); | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Lo lanzo desde el directorio del proyecto, | ||
+ | < | ||
+ | [osotolongo@detritus facehbi]$ ./ | ||
+ | </ | ||
+ | y ya esta, los fbb me quedan ordenados correctamente. | ||
==== de DICOM a NiFTI ==== | ==== de DICOM a NiFTI ==== | ||
DELETEME | DELETEME | ||
Line 689: | Line 741: | ||
| | ||
</ | </ | ||
+ | |||
+ | ===== Correccion de movimiento ===== | ||
+ | |||
+ | {{ : | ||
+ | |||
+ |