MantisBT - ParaView
View Issue Details
0012905ParaView(No Category)public2012-02-01 16:242012-02-08 17:24
David Doria 
Robert Maynard 
normalminorhave not tried
closedfixed 
3.12 
3.14 
TBD
12905-postfilter-magnitude-is-double
usability
0012905: Type of automatically computed magnitude should be large enough to not overflow
The magnitude that is automatically computed for the ThresholdFilter (which turns an array Colors into a magnitude array Colors_Magnitude) is stored as the same type as the array. That is, the magnitude of an unsigned char array (255,255,255) is stored as an unsigned char is which overflows to 185 instead of being correctly 441.

Using a double can still have problems (as the components approach double_max
you run into generate INF or rolling over), but it should always be better than using the same type as the array components.
No tags attached.
child of 0012904closed Robert Maynard Auto Convert properties fail on Magnitude 
Issue History
2012-02-01 16:24David DoriaNew Issue
2012-02-02 09:33Robert MaynardAssigned To => Robert Maynard
2012-02-02 09:33Robert MaynardStatusbacklog => todo
2012-02-02 09:33Robert MaynardRelationship addedchild of 0012904
2012-02-02 09:33Robert MaynardStatustodo => active development
2012-02-02 11:55Robert MaynardTopic Name => 12905-postfilter-magnitude-is-double
2012-02-02 11:55Robert MaynardNote Added: 0028014
2012-02-02 11:55Robert MaynardStatusactive development => gatekeeper review
2012-02-02 11:55Robert MaynardResolutionopen => fixed
2012-02-03 15:06Utkarsh AyachitNote Added: 0028035
2012-02-03 15:06Utkarsh AyachitStatusgatekeeper review => customer review
2012-02-03 15:06Utkarsh AyachitNote Added: 0028047
2012-02-03 15:07Utkarsh AyachitFixed in Version => git-master
2012-02-08 17:21Utkarsh AyachitFixed in Versiongit-master => 3.14
2012-02-08 17:24Utkarsh AyachitStatuscustomer review => closed
2012-02-08 17:24Utkarsh AyachitNote Added: 0028131

Notes
(0028014)
Robert Maynard   
2012-02-02 11:55   
Now all magnitude arrays that are generated in vtkPVPostFilter are double arrays.
(0028035)
Utkarsh Ayachit   
2012-02-03 15:06   
merged into master, where applicable.
(0028047)
Utkarsh Ayachit   
2012-02-03 15:06   
merged into master, where applicable.
(0028131)
Utkarsh Ayachit   
2012-02-08 17:24   
Closing bugs sitting in "customer review" for a long time.