Advice on basic operations: zoom, crop and splice

Adam Hughes hughesadam87 at gmail.com
Tue Nov 26 13:30:58 EST 2013


Sorry, last post.  Here's a slightly more complete version for sake of
archiving:




On Mon, Nov 25, 2013 at 9:45 PM, Adam Hughes <hughesadam87 at gmail.com> wrote:

> I made a couple basic utilties:
>   zoom, crop, and zoomplot
>
> They're very straightforward, but there was just enough nuance involved
> that working directly with numpy and matplotlib would become a pain.
>
> See the attached notebook and/or pdf.  The PDF was generaged with
> nbconvert, and the image quality is poor.  Feel free to use and distribute
> this; please the ignore the content claim on the title page; it defaults to
> all of our pdfs that we generate with nbconvert.
>
> On Friday, November 22, 2013 2:03:04 PM UTC-5, Adam Hughes wrote:
>>
>> Hi everyone,
>>
>> I'm used to working with big images of lots of particles.  In the
>> notebook, I'd like to be able to look at a full image, and then at a zoomed
>> in region of interest.  A few basic questions come to mind:
>>
>>  Is there a zoom/crop function or preffered approach to basic
>> manipulations of zooming and cropping, or would I have to do this at the
>> numpy or matplotlib level?  I saw that there's a rectangle function that
>> probably would be useful here.  Does anyone have any examples or personal
>> code built for doing some of these common manipulations?   Ideally, I want
>> to take the fastest approach to:
>>
>> 1.  Selecting a rectangular region of interest (ROI).
>> 2.  Cropping or zooming in on this region, and storing the ROI as its own
>> array/image.
>> 3.  If possible, removing the ROI from the original image, and splicing
>> the original image back together.  If this is possible, that would be
>> amazing.  This would allow us to effectively cut out regions of our images
>> that are obviously contaminates.
>>
>> Thanks.
>>
>>
>>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "scikit-image" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/scikit-image/Ke7_TwUew4U/unsubscribe.
> To unsubscribe from this group and all of its topics, send an email to
> scikit-image+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20131126/f455e886/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zoomcrop.pdf
Type: application/pdf
Size: 756424 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20131126/f455e886/attachment.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zoom_crop_roi.ipynb
Type: application/octet-stream
Size: 1004382 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20131126/f455e886/attachment.obj>


More information about the scikit-image mailing list