Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
3cea708c
Commit
3cea708c
authored
12 years ago
by
Andreas Schenk
Browse files
Options
Downloads
Patches
Plain Diff
added additional convenience method to create image
parent
0fe22e9f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/img/base/src/image_factory.cc
+5
-0
5 additions, 0 deletions
modules/img/base/src/image_factory.cc
modules/img/base/src/image_factory.hh
+5
-1
5 additions, 1 deletion
modules/img/base/src/image_factory.hh
with
10 additions
and
1 deletion
modules/img/base/src/image_factory.cc
+
5
−
0
View file @
3cea708c
...
@@ -46,6 +46,11 @@ ImageHandle CreateImage(const Extent& ext, DataType type, DataDomain dom)
...
@@ -46,6 +46,11 @@ ImageHandle CreateImage(const Extent& ext, DataType type, DataDomain dom)
return
DoCreateImage
(
ext
,
type
,
dom
);
return
DoCreateImage
(
ext
,
type
,
dom
);
}
}
ImageHandle
CreateImage
(
const
Size
&
s
,
DataType
type
,
DataDomain
dom
)
{
return
DoCreateImage
(
Extent
(
s
),
type
,
dom
);
}
ImageHandle
CreateImage
(
const
Size
&
s
,
const
Point
&
o
,
DataType
type
,
DataDomain
dom
)
ImageHandle
CreateImage
(
const
Size
&
s
,
const
Point
&
o
,
DataType
type
,
DataDomain
dom
)
{
{
return
CreateImage
(
Extent
(
s
,
o
),
type
,
dom
);
return
CreateImage
(
Extent
(
s
,
o
),
type
,
dom
);
...
...
This diff is collapsed.
Click to expand it.
modules/img/base/src/image_factory.hh
+
5
−
1
View file @
3cea708c
...
@@ -50,7 +50,11 @@ ImageHandle DLLEXPORT_OST_IMG_BASE CreateImage(const Extent& ext=Extent(),
...
@@ -50,7 +50,11 @@ ImageHandle DLLEXPORT_OST_IMG_BASE CreateImage(const Extent& ext=Extent(),
DataType
type
=
REAL
,
DataType
type
=
REAL
,
DataDomain
dom
=
SPATIAL
);
DataDomain
dom
=
SPATIAL
);
//! convenience variant to create images
//! convenience variants to create images
ImageHandle
DLLEXPORT_OST_IMG_BASE
CreateImage
(
const
Size
&
s
,
DataType
type
=
REAL
,
DataDomain
dom
=
SPATIAL
);
ImageHandle
DLLEXPORT_OST_IMG_BASE
CreateImage
(
const
Size
&
s
,
const
Point
&
o
,
ImageHandle
DLLEXPORT_OST_IMG_BASE
CreateImage
(
const
Size
&
s
,
const
Point
&
o
,
DataType
type
=
REAL
,
DataType
type
=
REAL
,
DataDomain
dom
=
SPATIAL
);
DataDomain
dom
=
SPATIAL
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment