Skip to content

Renderfacility#93

Merged
dominikl merged 12 commits intoome:masterfrom
dominikl:renderfacility
Mar 25, 2026
Merged

Renderfacility#93
dominikl merged 12 commits intoome:masterfrom
dominikl:renderfacility

Conversation

@dominikl
Copy link
Copy Markdown
Member

Add a Renderfacility, with some basic rendering methods. Inspired by #92 .

public boolean isRGB(SecurityContext ctx, long imageId) throws DSOutOfServiceException, DSAccessException {
try {
ImageData img = gateway.getFacility(LoadFacility.class).getImage(ctx, imageId);
int nChannles = img.getDefaultPixels().getSizeC();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in variable names

}

/**
* Checks if an image is an RGB(A) image.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe indicate in the description that the RenderingEngine is not closed

@dominikl dominikl requested a review from jburel January 17, 2025 11:19
@dominikl
Copy link
Copy Markdown
Member Author

Ok to merge @jburel ? Not urgently required, just add rendering method to gateway, might be useful.

/*
*------------------------------------------------------------------------------
* Copyright (C) 2015-2017 University of Dundee. All rights reserved.
* Copyright (C) 2015-2024 University of Dundee. All rights reserved.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already 2025 :-)

Comment thread src/main/java/omero/gateway/facility/Facility.java Outdated
Comment thread src/main/java/omero/gateway/facility/Facility.java Outdated
Comment thread src/main/java/omero/gateway/facility/RenderFacility.java Outdated
Comment thread src/main/java/omero/gateway/facility/RenderFacility.java
Comment thread src/main/java/omero/gateway/facility/RenderFacility.java

/**
* Tries to determine if an image is an RGB(A) image.
* (Note: This does not necessarily give the same results as Bioformats isRGB()!)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The difference should probably be clarified

Comment thread src/main/java/omero/gateway/facility/RenderFacility.java Outdated
Comment thread src/main/java/omero/gateway/facility/RenderFacility.java Outdated
dominikl and others added 7 commits January 29, 2026 12:08
Co-authored-by: jean-marie burel <j.burel@dundee.ac.uk>
Co-authored-by: jean-marie burel <j.burel@dundee.ac.uk>
Co-authored-by: jean-marie burel <j.burel@dundee.ac.uk>
Co-authored-by: jean-marie burel <j.burel@dundee.ac.uk>
Co-authored-by: jean-marie burel <j.burel@dundee.ac.uk>
@dominikl dominikl merged commit cf32968 into ome:master Mar 25, 2026
8 checks passed
@dominikl
Copy link
Copy Markdown
Member Author

Merging. Probably nobody will use the RenderFacility, but it doesn't do any harm either :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants