[ome-devel] OMERO Webgateway color inversion

Andrii Iudin andrii at ebi.ac.uk
Fri Jan 15 10:58:36 GMT 2016


Dear William,

Thank you for investigating the color inversion. We have checked the 
results from using the code you suggest and they look fine.
It would be very nice to have this switch implemented in the OMERO API.

Best regards,
Andrii

On 14/01/2016 23:05, William Moore wrote:
> Dear Andrii,
>
>  Apologies for the delay.
>
> I have tried to work an example of what you’re asking for at
> https://gist.github.com/will-moore/8c6cda301020d67c802a
>
> This creates a subclass of the BlitzGateaway ImageWrapper to extend 
> the renderImage() method,
> adding an “invert” parameter and using PIL to invert the image.
>
> You may want to experiment with different behaviour using PIL to 
> invert the image, but at least
> this example should give you a good start.
>
>  Please let us know if this does what you want,
>
>  Regards,
>
>    Will.
>
>
>
>> On 12 Jan 2016, at 09:58, Andrii Iudin <andrii at ebi.ac.uk 
>> <mailto:andrii at ebi.ac.uk>> wrote:
>>
>> Dear OMERO developers,
>>
>> We are interested in reversing the color scheme of images as 
>> sometimes users deposit to us images with a negative contrast. The 
>> inversion can be done client-side, however the browser support of the 
>> CSS implementation is lacking and the Javascript solution is not 
>> feasible due to CORS restrictions. The optimal way would be to do 
>> this server-side. Please could you tell if it would be possible for 
>> you to implement the reversion of colors in Webgateway views 
>> render_image and render_image_region? Perhaps as a switch that can be 
>> set in the call to server that would invert the colors of the 
>> resulting image?
>>
>> Many thanks and best regards,
>> Andrii
>> _______________________________________________
>> ome-devel mailing list
>> ome-devel at lists.openmicroscopy.org.uk 
>> <mailto:ome-devel at lists.openmicroscopy.org.uk>
>> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel
>
>
>
> _______________________________________________
> ome-devel mailing list
> ome-devel at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20160115/9a5b9785/attachment.html>


More information about the ome-devel mailing list