Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
5a4fe9bb
Commit
5a4fe9bb
authored
13 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
LMS-2735 - Changed names of image pyramid methods to use image representation
SVN: 24091
parent
c1817747
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
screening/source/java/ch/systemsx/cisd/openbis/dss/etl/dto/api/v1/SimpleImageDataConfig.java
+72
-4
72 additions, 4 deletions
...isd/openbis/dss/etl/dto/api/v1/SimpleImageDataConfig.java
with
72 additions
and
4 deletions
screening/source/java/ch/systemsx/cisd/openbis/dss/etl/dto/api/v1/SimpleImageDataConfig.java
+
72
−
4
View file @
5a4fe9bb
...
@@ -362,24 +362,92 @@ abstract public class SimpleImageDataConfig
...
@@ -362,24 +362,92 @@ abstract public class SimpleImageDataConfig
imagePyramid
.
add
(
new
DefaultThumbnailsConfiguration
());
imagePyramid
.
add
(
new
DefaultThumbnailsConfiguration
());
}
}
/**
* See {@link #setGenerateImageRepresentations}.
*
* @deprecated use {@link #setGenerateImageRepresentations} instead.
*/
@Deprecated
public
void
setGenerateImagePyramid
(
IThumbnailsConfiguration
[]
elements
)
public
void
setGenerateImagePyramid
(
IThumbnailsConfiguration
[]
elements
)
{
{
imagePyramid
.
addAll
(
Arrays
.
asList
(
elements
)
)
;
setGenerateImageRepresentations
(
elements
);
}
}
/**
* See {@link #setGenerateImageRepresentationsWithScaleFactors}.
*
* @deprecated use {@link #setGenerateImageRepresentationsWithScaleFactors} instead.
*/
@Deprecated
public
void
setGenerateImagePyramidWithScaleFactors
(
double
[]
zoomLevels
)
public
void
setGenerateImagePyramidWithScaleFactors
(
double
[]
zoomLevels
)
{
{
setGenerateImageRepresentationsWithScaleFactors
(
zoomLevels
);
}
/**
* See {@link #setGenerateImageRepresentationsWithImageResolutions}.
*
* @deprecated use {@link #setGenerateImageRepresentationsWithImageResolutions} instead.
*/
@Deprecated
public
void
setGenerateImagePyramidWithImageResolution
(
String
[]
resolutions
)
{
setGenerateImageRepresentationsWithImageResolutions
(
resolutions
);
}
/**
* Registers a request for alternate image representations to be generated based on the original
* image. The format of the alternate representations is specified by the {@link formats}
* argument.
*
* @param formats The formats of the image generated representations. One image representation
* will be created for each format.
*/
public
void
setGenerateImageRepresentations
(
IThumbnailsConfiguration
[]
formats
)
{
imagePyramid
.
clear
();
imagePyramid
.
addAll
(
Arrays
.
asList
(
formats
));
}
/**
* Registers a request for alternate image representations to be generated based on the original
* image. The alternate image representations vary with respect to resolution from the original
* image.
*
* @param scaleFactors The scale factors applied to the original resolution. Scale factors must
* be greater than 0.
*/
public
void
setGenerateImageRepresentationsWithScaleFactors
(
double
[]
scaleFactors
)
{
// Verify the arguments
for
(
double
scaleFactor
:
scaleFactors
)
{
if
(
scaleFactor
<=
0
)
{
throw
new
IllegalArgumentException
(
"Scale factors for generated image representations must be greater than 0."
);
}
}
imagePyramid
.
clear
();
imagePyramid
.
clear
();
if
(
zoomLevel
s
!=
null
)
if
(
scaleFactor
s
!=
null
)
{
{
for
(
double
zoomLevel
:
zoomLevel
s
)
for
(
double
zoomLevel
:
scaleFactor
s
)
{
{
imagePyramid
.
add
(
new
ZoomLevelBasedThumbnailsConfiguration
(
zoomLevel
));
imagePyramid
.
add
(
new
ZoomLevelBasedThumbnailsConfiguration
(
zoomLevel
));
}
}
}
}
}
}
public
void
setGenerateImagePyramidWithImageResolution
(
String
[]
resolutions
)
/**
* Registers a request for alternate image representations to be generated based on the original
* image. The alternate image representations vary with respect to resolution from the original
* image.
*
* @param resolutions The resolutions
* @param allowEnlarging If true, resolutions larger than the original size of the image are
* allowed
*/
public
void
setGenerateImageRepresentationsWithImageResolutions
(
String
[]
resolutions
)
{
{
imagePyramid
.
clear
();
imagePyramid
.
clear
();
if
(
resolutions
!=
null
)
if
(
resolutions
!=
null
)
...
...
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