DiscussionsIssue archiveOCCT:Visualization

Archived issue #0032841

Visualization - add 16-bit grayscale pixel format to Image_PixMap

Open CASCADEOCCT:Visualizationclosed10 public notes

Search issues

Description

Adding 16-bit grayscale pixel format to Image_PixMap could be useful for medical imaging applications.

Steps to reproduce

pload MODELING VISUALIZATION
box b 1 2 3
#vcaps -deepColor
vinit View1
vdisplay -dispMode 1 b
vfit
vaspects b -shadingModel UNLIT
vtexture b Attachment 1 (TIF)
vleft
vfit

Public activity

10 archived notes

Participants are labeled by their role within this record.

01Commenter 1
Branch [archived branch] has been created by Commenter 2.

[revision removed]


Detailed log of new commits:

Author: Commenter 2
Date: Tue Mar 1 22:34:31 2022 +0300

    0032841: Visualization - add 16-bit grayscale pixel format to Image_PixMap
    
    Added Image_Format_Gray16 pixel format definition, which could be uploaded into GL_R16 texture.
02Commenter 1
Branch [archived branch] has been updated forcibly by Commenter 2.

[revision removed]
03Commenter 2
Attachment 1 (TIF) (20,420 bytes)   
04Commenter 1
Branch [archived branch] has been updated by Commenter 2.

[revision removed]


Detailed log of new commits:

Author: Commenter 2
Date: Tue Mar 1 23:09:07 2022 +0300

    Added Image_Format_GrayF_half for completeness.
05Commenter 1
Branch [archived branch] has been created by Commenter 2.

[revision removed]


Detailed log of new commits:

Author: Commenter 2
Date: Tue Mar 1 22:34:31 2022 +0300

    0032841: Visualization - add 16-bit grayscale pixel format to Image_PixMap
    
    Added Image_Format_Gray16 pixel format definition, which could be uploaded into GL_R16 texture.
    Added Image_Format_GrayF_half mapped to GL_R16F texture.
06Commenter 2
Patch is ready for review
- OCCT: branch CR32841_1.

http://jenkins-test-occt.nnov.opencascade.com/view/CR32841_1-master-KGV/
07Commenter 7
The patch was reviewed
08Commenter 8
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 18394.330000000256 / 18467.180000000375 [-0.39%]
Products
Total CPU difference: 11708.150000000112 / 11716.630000000077 [-0.07%]
Windows-64-VC14:
OCCT
Total CPU difference: 20348.171875 / 20359.046875 [-0.05%]
Products
Total CPU difference: 13154.5625 / 13140.734375 [+0.11%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
09Commenter 1
Branch [archived branch] has been deleted by Participant.

[revision removed]
10Commenter 1
Branch [archived branch] has been deleted by Participant.

[revision removed]