⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dim_fluoview_format.h

📁 Digital Notebook Source Code v1.1.0 [
💻 H
字号:
/*****************************************************************************
  FLUOVIEW definitions 
  Copyright (c) 2004 by Dmitry V. Fedorov <www.dimin.net> <dima@dimin.net>

  IMPLEMENTATION
  
  Programmer: Dima V. Fedorov <mailto:dima@dimin.net> <http://www.dimin.net/>
    
  History:
    03/29/2004 22:23 - First creation
    10/12/2005 15:03 - updates for 64 bit machines       

  Ver : 2
*****************************************************************************/

#ifndef DIM_FLUOVIEW_FORMAT_H
#define DIM_FLUOVIEW_FORMAT_H

#include <dim_img_format_interface.h>

//----------------------------------------------------------------------------
// Internal Fluoview Structures
//----------------------------------------------------------------------------

#define MMHEADER  34361

#define IMAGE_NAME_LENGTH   256
#define SPATIAL_DIMENSION   10
#define DIMNAME_LENGTH      16
#define UNITS_LENGTH        64

typedef DIM_UINT32 MM_HANDLE;      // Size (bytes):     4

#pragma pack(push, 1)
typedef struct MM_DIM_INFO
{
  DIM_CHAR      Name[DIMNAME_LENGTH]; //Dimension name e.g. Width   16
  DIM_UINT32    Size;                 //Image width etc              4
  DIM_DOUBLE    Origin;               //Origin                       8
  DIM_DOUBLE    Resolution;           //Image resolution             8
  DIM_CHAR      Units[UNITS_LENGTH];  //Image calibration units     64
} MM_DIM_INFO;                        // Total Size (bytes):       100  

typedef struct MM_HEAD
{
  DIM_INT16     HeaderFlag;                 //Size of header structure             2
  DIM_UCHAR     ImageType;                  //Image Type                           1
  DIM_CHAR      Name[IMAGE_NAME_LENGTH];    //Image name                         256
  DIM_UCHAR     Status;                     //image status                         1
  DIM_UINT32    Data;                       //Handle to the data field             4
  DIM_UINT32    NumberOfColors;             //Number of colors in palette          4
  DIM_UINT32    MM_256_Colors;              //handle to the palette field          4
  DIM_UINT32    MM_All_Colors;              //handle to the palette field          4
  DIM_UINT32    CommentSize;                //Size of comments field               4
  DIM_UINT32    Comment;                    //handle to the comment field          4
  MM_DIM_INFO   DimInfo[SPATIAL_DIMENSION]; //Dimension Info                    1000    
  DIM_UINT32    SpatialPosition;            //obsolete???????????                  4
  DIM_INT16     MapType;                    //Display mapping type                 2
  //short         reserved;                   //Display mapping type                 2
  DIM_DOUBLE    MapMin;                     //Display mapping minimum              8
  DIM_DOUBLE    MapMax;                     //Display mapping maximum              8
  DIM_DOUBLE    MinValue;                   //Image histogram minimum              8
  DIM_DOUBLE    MaxValue;                   //Image histogram maximum              8
  MM_HANDLE     Map;                        //Handle to gray level mapping array   4
  DIM_DOUBLE    Gamma;                      //Image gray level correction factor   8
  DIM_DOUBLE    Offset;                     //Image gray level correction offset   8
  MM_DIM_INFO   Gray;                       //                                   100
  MM_HANDLE     ThumbNail;                  //handle to the ThumbNail field        4
  DIM_UINT32    UserFieldSize;              //Size of Voice field                  4
  MM_HANDLE     UserFieldHandle;            //handle to the Voice field            4
} MM_HEAD;                                  // Total Size (bytes):              1456
#pragma pack(pop)

//----------------------------------------------------------------------------
// TIFF Codec-wise Fluoview Structure 
//----------------------------------------------------------------------------
typedef struct TDimFluoviewInfo
{
  int ch;       // number of channels in each image of the sequence
  int z_slices; // number of Z slices for each time instance
  int t_frames; // number of time frames in the sequence
  int pages;    // the value of consequtive images generated by driver
  double xR, yR, zR; // pixel resolution for XYZ
  MM_HEAD head; // actual header structure retreived form the image

  //internal
  int pages_tiff;
  int sample_lut[4];
} TDimFluoviewInfo;


#endif // DIM_FLUOVIEW_FORMAT_H















⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -