UsTK : Ultrasound ToolKit
version 2.0.1 under development (2024-12-03)
us.h
1
/****************************************************************************
2
*
3
* This file is part of the ustk software.
4
* Copyright (C) 2016 - 2017 by Inria. All rights reserved.
5
*
6
* This software is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* ("GPL") version 2 as published by the Free Software Foundation.
9
* See the file LICENSE.txt at the root directory of this source
10
* distribution for additional information about the GNU GPL.
11
*
12
* For using ustk with software that can not be combined with the GNU
13
* GPL, please contact Inria about acquiring a ViSP Professional
14
* Edition License.
15
*
16
* This software was developed at:
17
* Inria Rennes - Bretagne Atlantique
18
* Campus Universitaire de Beaulieu
19
* 35042 Rennes Cedex
20
* France
21
*
22
* If you have questions regarding the use of this file, please contact
23
* Inria at ustk@inria.fr
24
*
25
* This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
26
* WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
27
*
28
* Authors:
29
* Marc Pouliquen
30
*
31
*****************************************************************************/
32
38
#ifndef __us_h_
39
#define __us_h_
40
41
#include <visp3/core/vpConfig.h>
42
43
// includes for uint64 type
44
#if defined(VISP_HAVE_CPP11_COMPATIBILITY)
// CPP 11
45
#include <cstdint>
46
#else
47
#include <stdint.h>
48
#endif
49
50
#include <visp3/core/vpIoTools.h>
51
52
#include <visp3/ustk_core/usImagePreScanSettings.h>
53
#include <visp3/ustk_core/usMotorSettings.h>
54
60
namespace
us
61
{
62
65
typedef
enum
{
66
UNKNOWN
= -1,
67
NOT_SET
,
68
RF_2D
,
69
RF_3D
,
70
PRESCAN_2D
,
71
PRESCAN_3D
,
72
POSTSCAN_2D
,
73
POSTSCAN_3D
,
74
}
ImageType
;
75
79
struct
usImageHeader
{
80
usImageHeader
() :
headerId
(2) {}
// set header Id to 2 by default
81
int
headerId
;
84
uint32_t
frameCount
;
85
uint64_t
timeStamp
;
87
double
dataRate
;
89
int
dataLength
;
90
int
ss
;
92
int
imageType
;
94
int
frameWidth
;
95
int
frameHeight
;
97
double
pixelWidth
;
98
double
pixelHeight
;
100
int
transmitFrequency
;
101
int
samplingFrequency
;
107
double
transducerRadius
;
108
double
scanLinePitch
;
109
unsigned
int
scanLineNumber
;
110
int
imageDepth
;
112
117
double
anglePerFr
;
118
int
framesPerVolume
;
119
double
motorRadius
;
120
int
motorType
;
122
};
123
VISP_EXPORT std::string
getDataSetPath
();
124
};
125
126
#endif
// __us_h_
us
General tools.
us::ImageType
ImageType
Definition:
us.h:65
us::PRESCAN_2D
@ PRESCAN_2D
Definition:
us.h:70
us::UNKNOWN
@ UNKNOWN
Definition:
us.h:66
us::POSTSCAN_2D
@ POSTSCAN_2D
Definition:
us.h:72
us::RF_2D
@ RF_2D
Definition:
us.h:68
us::PRESCAN_3D
@ PRESCAN_3D
Definition:
us.h:71
us::NOT_SET
@ NOT_SET
Definition:
us.h:67
us::POSTSCAN_3D
@ POSTSCAN_3D
Definition:
us.h:73
us::RF_3D
@ RF_3D
Definition:
us.h:69
us::getDataSetPath
VISP_EXPORT std::string getDataSetPath()
Definition:
us.cpp:54
us::usImageHeader
Definition:
us.h:79
us::usImageHeader::motorType
int motorType
Definition:
us.h:120
us::usImageHeader::anglePerFr
double anglePerFr
Definition:
us.h:117
us::usImageHeader::ss
int ss
Definition:
us.h:90
us::usImageHeader::dataLength
int dataLength
Definition:
us.h:89
us::usImageHeader::frameWidth
int frameWidth
Definition:
us.h:94
us::usImageHeader::dataRate
double dataRate
Definition:
us.h:87
us::usImageHeader::scanLineNumber
unsigned int scanLineNumber
Definition:
us.h:109
us::usImageHeader::imageDepth
int imageDepth
Definition:
us.h:110
us::usImageHeader::usImageHeader
usImageHeader()
Definition:
us.h:80
us::usImageHeader::frameCount
uint32_t frameCount
Definition:
us.h:84
us::usImageHeader::samplingFrequency
int samplingFrequency
Definition:
us.h:101
us::usImageHeader::framesPerVolume
int framesPerVolume
Definition:
us.h:118
us::usImageHeader::pixelHeight
double pixelHeight
Definition:
us.h:98
us::usImageHeader::motorRadius
double motorRadius
Definition:
us.h:119
us::usImageHeader::transmitFrequency
int transmitFrequency
Definition:
us.h:100
us::usImageHeader::frameHeight
int frameHeight
Definition:
us.h:95
us::usImageHeader::imageType
int imageType
Definition:
us.h:92
us::usImageHeader::pixelWidth
double pixelWidth
Definition:
us.h:97
us::usImageHeader::headerId
int headerId
Definition:
us.h:81
us::usImageHeader::timeStamp
uint64_t timeStamp
Definition:
us.h:85
us::usImageHeader::transducerRadius
double transducerRadius
Definition:
us.h:107
us::usImageHeader::scanLinePitch
double scanLinePitch
Definition:
us.h:108
ustk-code
modules
ustk_core
include
visp3
ustk_core
us.h
Generated by
1.9.1