[ome-devel] OMERO Webgateway color inversion

William Moore will at lifesci.dundee.ac.uk
Mon Jan 18 10:12:24 GMT 2016


Hi Andrii,

 I have added this to our requirements gathering for further rendering support.

 Regards,

  Will.


> On 15 Jan 2016, at 10:58, Andrii Iudin <andrii at ebi.ac.uk> wrote:
> 
> 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 <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 < <mailto:andrii at ebi.ac.uk>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 <http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel>
>> 
>> 
>> 
>> _______________________________________________
>> 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 <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/20160118/d77cf9bd/attachment.html>


More information about the ome-devel mailing list