Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Resizing an Object

0 views
Skip to first unread message

Valentine Oradiegwu

unread,
Mar 17, 2010, 6:54:05 AM3/17/10
to
Dear Forum,

I entend to shrink and expand a bitmap object in an image in accordance to varying areas. How can I accomplish this?

Many thanks.

ImageAnalyst

unread,
Mar 17, 2010, 8:18:26 AM3/17/10
to
Valentine Oradiegwu:

Define "bitmap" object, and shrink/expand.
And I also don't understand "in accordance to varying areas" - how is
that any different than just regular enlarging/shrinking the region?

Anyway, I'll take a stab at possible meanings:
If you mean a binary image (0's and 1's) then you may be thinking of
imerode() and imdilate().
If you mean a regular numerical array image, then you may be thinking
of maketform() & imtransform().

-Image Analyst

Valentine Oradiegwu

unread,
Mar 17, 2010, 4:11:27 PM3/17/10
to
ImageAnalyst <imagea...@mailinator.com> wrote in message <363c0014-32cc-4944...@b7g2000yqd.googlegroups.com>...
Dear ImageAnalyst,

My apologies for the ambiguities. What i intend to achieve is this. I have a video sequence from a high way camera with cars moving on the lanes. I want to replace every single car with some other object such that the size of my new object is always tailored to the size of the object it is replacing which implies that this new object will have to be resized dynamically. It is some interpolation function that can increase or reduce the size of this object that i seek.

Many thanks.

ImageAnalyst

unread,
Mar 17, 2010, 5:38:05 PM3/17/10
to
Your replacement object would be a numerical array, correct? Oh,
maybe you're masking it, but it still starts out as a numerical array
and that is rectangular. So I'd just resize it to a new rectangular
array with imresize() and then mask (if necessary) and paste onto the
image.

Valentine Oradiegwu

unread,
Mar 17, 2010, 7:16:20 PM3/17/10
to
ImageAnalyst <imagea...@mailinator.com> wrote in message <52a77164-e14f-41ae...@q15g2000yqj.googlegroups.com>...

Dear Image Analyst,
Excellent!
Many thanks!

0 new messages