Dear Donna,
Thanks for your answer. I did exactly what you mention. You are right, I
want to use the same palette for all the images. So I changed
into the scene file :
<metricPaletteIndex>
<model><![CDATA[]]></model>
<overlay><![CDATA[-1]]></overlay>
<value><![CDATA[my_ownpalette]]></value>
</metricPaletteIndex>
And I added the line in the spec file :
palette_file my_own_palette.palette
The file my_own_palette.palette was generated using caret.
But when I wanted to create the jpg files using the -show-scene command,
there was an output error saying : could not find 'my_ownpalette'
In fact, when I am downloading the spec file using the GUI, I have to tick
the specific box specifying that I want to use my own palette file, it is
not ticked by default just as the .coord and .topo files.
I think I am missing something to mention at the beginning to specify to
caret to get the correct palette file.
Thanks,
Best wishes,
Sophie.
On Thu, 22 Sep 2011, Donna Dierker wrote:
> There probably is more than one way to do this. The way I'm used to batching
> images is using caret_command -show-scene with some TEMPLATE.scene file that
> has variable names like FIDUCIAL_FNAME for any files that vary. The palette
> file will probably remain constant across your subjects, so storing this in
> your scene and using that template scene is probably the way to go.
>
> For an example of how this works, see
> http://brainvis.wustl.edu/pub/caret/PALS_B12.LR.zip (login pub, password
> download) and see how preborder.sh interacts with TEMPLATE.check.*H.scene.
> (Scroll down to the check scenes near the end.)
>
> If this turns out to be far more complicated than what you have been doing,
> then tell me how you've been doing it.
>
>
> On Sep 22, 2011, at 3:16 AM, Sophie Achard wrote:
>
>>
>> Dear caret users,
>>
>> I've found a way to batch caret to be able to export color images using
>> specific template. My problem now is to specify to caret to use my own
>> palette. I know how to do this using the GUI, but when I want to batch it,
>> caret is not able to find my own palette.
>>
>> I've tried to add a line in the .spec file, to specify the new palette
>> file to use, but it seems caret could not read it by default.
>>
>> Thanks a lot for your help,
>>
>> Sophie.
>> _______________________________________________
>> caret-users mailing list
>> [email protected]
>> http://brainvis.wustl.edu/mailman/listinfo/caret-users
>
>
> _______________________________________________
> caret-users mailing list
> [email protected]
> http://brainvis.wustl.edu/mailman/listinfo/caret-users
>
---
Sophie Achard --- Research Fellow of the CNRS --- +33 476 57 43 52
Grenoble Image Parole Signal Automatique, GIPSA-lab, INPG
Department : Images and Signal,
Team :Communication and Information in Complex Systems (CICS)
[email protected]
_______________________________________________
caret-users mailing list
[email protected]
http://brainvis.wustl.edu/mailman/listinfo/caret-users