I entend to shrink and expand a bitmap object in an image in accordance to varying areas. How can I accomplish this?
Many thanks.
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
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.
Dear Image Analyst,
Excellent!
Many thanks!