Hi, I'm a PhD student in the image processing field, and I'm trying to write some demo software of the technology available in my lab. I'm working on image inpainting, which is roughly the task of automatically replacing a selected image area by the available surrounding data without noticeable artifacts.
I already have a small collection of algorithms for this, and I'd like to make a small software where a user can select an area by clicking in an image, then send this to my algorithms, and display the result in another view with the ability to zoom and scroll synchronously among the 2 views ("original view" and "inpainted view"). After going through the doc and examples, it appeared to me that the IKImageView class was a good starting point for me, since CGImage's are image structures close to what I already use, and some built-in functions (contrast enhancement, move/select tools...) are interesting for me. The problem is, I can't find enough documentation describing the behaviour of IKImageView to do what I want. In particular, my problems are: 1. although there is a selection tool that you can programmatically activate, there is no documentation (in the class reference, or in quartz guides, or Appkit guides) on how to use it. I did google for it, and it seems that the delegate of the view should implement some methods, but the description I found was quite sparse and lacunar. And since there is no "official" documentation for that, may this mean that developers shouldn't use it ? 2. there are some tools and functions to scroll and zoom the content of the view. As far as I have seen by subclassing IKImageView, these functions however do not act on the bounds or affine transform property of the view. Hence, I cannot get the new viewport information from one view (say, the "original image" view) and propagate it into the other (say, the "inpainted image" view). My questions are: - has someone please answers or pointers to up-to-date documentation that would allow me to solve my 2 problems ? - or maybe should I use another class than IKImageView, using some work-around for scrolling/zooming such as the one proposed by Graham Cox on his webpage (for his GCZoomView class) ? I guess that NSOpenGLView would probably be the better choice instead ? Thank you in advance for your help. Emmanuel_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com