Skip to content

Conversation

@dominikl
Copy link
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
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
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
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
Member

Choose a reason for hiding this comment

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

already 2025 :-)


/**
* 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
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

dominikl and others added 6 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>
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