Yes! That was what I was trying to describe.
Thanks for the explanation.
In my processor, each time my image is computed the UpdateOutput function
is called like this
UpdateOutput(count,imageSuma , "ColapsedImage", true, 1, NULL,
metaData);
where previously to metaData I added the Modality tag.
In order to adjust the level window automatically, what must I do to the
metadata information?
Is it necessary to calculate the maximum and minimum of the image and
update the metada information?
Thank you very much
Aida
2012/8/28 Xavi Planes <[email protected]>
> Hi Aida,
>
> I think that when you say "color scale", you are referring to the
> brightness and contrast bar (level window) that is located at the
> right side of the main view. Please correct me if I'm wrong.
>
> The level window has several configuration parameters. When you
> write an image to disk, the parameters are written in the ".GMI" file.
> These are example values for the level window configuration
> parameters:
> <tag name="levelwindow" type="class
> blSmartPointer<class blTagMap>">Unsupported value type
> <tagmap size="8">
> <tag name="center" type="double">3278.8384</tag>
> <tag name="defaultRangeMax"
> type="double">11479.6504</tag>
> <tag name="defaultRangeMin"
> type="double">-4981.0581</tag>
> <tag name="lowerWindowBound"
> type="double">-4851.2427</tag>
> <tag name="rangeMax" type="double">11479.6504</tag>
> <tag name="rangeMin" type="double">-4981.0581</tag>
> <tag name="upperWindowBound"
> type="double">11408.9199</tag>
> <tag name="width" type="double">16260.1621</tag>
> </tagmap>
> </tag>
>
> You can easily open the GMI file with a text editor, change the
> any parameter (for example you can change rangeMax to the value
> 100000) and load the image again. You will see that the maximum value
> of the level window is set to 100000.
>
> You can also use the metadata of a DataEntity to configure the
> level window and call the function UpdateOutput(), passing the
> metadata information. This information will be used for the rendering
> of the data, so you can adjust the level window automatically based on
> the requirements of your processor.
>
> Best regards,
> Xavi
>
>
> 2012/8/27 Aida Ninyerola <[email protected]>:
> > Hi,
> >
> > In my plugin there is one step which computes the image that results from
> > the addition of some slices from the original image.
> > There is also one option the enables the user to change a parameter that
> > makes this image change, as the slices being added change.
> >
> > My question is about the color scale that is being used. At the begining
> > there is no problem with that, but when someone changes the slices that
> are
> > being added, and the value of the addition is higher thant the original
> one,
> > the values of the color scale don't enlarge and appears a "white area" in
> > the image.
> >
> > Is there any way to update the colors that are being used, each time the
> > addition image is calculated?
> >
> > I hope I've explain myself.
> >
> > Thanks a lot
> > Aida
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > Gimias-developers mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/gimias-developers
> >
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gimias-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimias-developers