Yes, this is possible. The squashing may be a result of your filter. Is it squashed if you render it at real size or just wider? The black is because you are sampling 0,0,0,0 values outside of your image. You can avoid this using an Affine Clamp or doing some tiling. If you have an issue that you believe is ROI related, it will most likely only manifest when used with large images, forcing CI to tile the input for processing. Does this happen with small images as well?
.xX

On Sep 26, 2008, at 11:27 AM, Alex Drinkwater wrote:

Anyone?

a|x


--- On Thu, 25/9/08, Alex Drinkwater <[EMAIL PROTECTED]> wrote:

From: Alex Drinkwater <[EMAIL PROTECTED]>
Subject: CIFilter ROI/DOD Still Confusing as Hell...
To: [email protected]
Date: Thursday, 25 September, 2008, 10:17 AM
Hiya,

I KNOW I've asked about this in several previous posts,
but I'm STILL confused...

Here's what I want to do in my multipass CIFilter:

1. Create an image 1/4 the size of the original input image

2. Apply a blur kernel function (which obviously involves
sampling from pixels other than the current working pixel)
to the resized image

3. Resize the resized image back to the dimensions of the
original input

4. Composite the image from the last step on top of the
original input image.


What I want to know is:
Is it actually possible to do all this in a single CIFilter
patch?

Currently I'm using just the blur pass on it's own,
and resizing the image before feeding it into the filter.
When I apply the blur effect (in this case the x-axis
component of a separable x/y blur) I get black bars at the
left and right of the image. The size of the output image,
as reported by the info popup when I hover the mouse over
the output, is identical to that of the input image, but the
actual image has been squashed on the x-axis, creating the
black bars at the sides. I'm assuming the width of the
black bars is related to the x-axis offset of the outermost
taps. How can I prevent these black bars from appearing, and
ensure the blurred image is not distorted and remains the
same size? Should I clamp the blur taps to the bounds of the
input image, can I manipulate the DOD/ROI to stop this
happening, or do I need to use another crop and affine
transform to get rid of the black bars as a post-process?
It's important to the final step that the
final blurred image 'fits' on top of the original
image.

In terms of the resizing operations, is there any special
JavaScript code I need to use to ensure this works
correctly?


Sorry for the long post, but I'm afraid I'm (once
again) finding this whole area horribly confusing.


a|x
http://machinesdontcare.wordpress.com



_______________________________________________
Do not post admin requests to the list. They will be
ignored.
Quartzcomposer-dev mailing list
([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/the_voder%40yahoo.co.uk

This email sent to [EMAIL PROTECTED]



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected] )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/asabatelli%40apple.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to