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

C code for the MATLAB imrotate function()

312 views
Skip to first unread message

Abhishek

unread,
Jul 6, 2006, 9:47:13 AM7/6/06
to
Hi,
I have always faced a difficulty in putting the questions in the right
manner.So let me put this correct. This is purely a homework based
question.(Actually I have to do lots more for which I am requesting for
this). My research needs the C function equivalent of the matlab
imrotate function. I dont have time to implement it and so I request
anyone who has either implemented it before or has it in C source code
to pls mail me. I am in need of it urgently. Dont reply back saying
this is a homework and we wont do it. I am need of it urgently and I am
sure you will help me out considering this as a valid request.
With Regards,
Abhishek S

Peter Schregle

unread,
Jul 6, 2006, 1:09:26 PM7/6/06
to
I don't have time either.


Bob

unread,
Jul 6, 2006, 6:29:19 PM7/6/06
to
This is homework and I don't consider it a valid request. I have a
policy of not helping people with homework unless they show they have
put some effort into solving the problem.

Bob

Abhishek

unread,
Jul 7, 2006, 10:46:34 AM7/7/06
to
What if I show you the matlab function IMROTATE implemented totally by
me?
Atleast then should you belive that I have th potential to do the same
thing in C but I am requesting it only because I dont have time.
Shall I mail you the MATLAB code of IMROTATE function written by me
solely?
Will atleast then you give me an equivalent C code?
Or are u willing to conver it into C for me?
With Regards,
Abhishek S

Kenneth Sloan

unread,
Jul 7, 2006, 12:01:54 PM7/7/06
to
"Abhishek" <abhishe...@gmail.com> writes:

> What if I show you the matlab function IMROTATE implemented totally by
> me?
> Atleast then should you belive that I have th potential to do the same
> thing in C but I am requesting it only because I dont have time.

no


> Shall I mail you the MATLAB code of IMROTATE function written by me
> solely?

no

> Will atleast then you give me an equivalent C code?

no

> Or are u willing to conver it into C for me?

no

--
Kenneth Sloan sl...@uab.edu
Computer and Information Sciences (205) 934-2213
University of Alabama at Birmingham FAX (205) 934-5473
Birmingham, AL 35294-1170 http://www.cis.uab.edu/sloan/

vonschwartzwalder

unread,
Jul 7, 2006, 1:38:37 PM7/7/06
to
MatLab has a builtin imrotate function.

Everyone has potential. The ones that write their own code for the
experience are the winners.

How do we know this isn't a class in c? Or an image processing class
that requires that you write code in c? In either case, if we provide
code to you, you have just cheated the school, your fellow students,
and most importantly, yourself.

I have seen you post several times, each time asking for a complete
solution. You won't do your own research and haven't even bothered to
use a web search engine. You have finally admitted to looking for
answers to homework, but you don't seem to get it that getting answers
from others is cheating.

I looked at your profile, and based on previous threads, I'm not sure
anyone here should provide you with anything.

duane

Peter Schregle

unread,
Jul 8, 2006, 6:41:24 AM7/8/06
to
This might help you for this case and others:
http://www.catb.org/~esr/faqs/smart-questions.html


Dave Martindale

unread,
Jul 9, 2006, 1:21:46 AM7/9/06
to
"Abhishek" <abhishe...@gmail.com> writes:
>What if I show you the matlab function IMROTATE implemented totally by
>me?

So you already have a full implementation of rotation by an arbitrary
angle, including high-quality resampling (at least bicubic)? Do you
understand how the code works?

If so, you understand all the hard bits, and converting this to C should
be pretty trivial for you. If you already have the algorithm in Matlab,
is the main point of the assignment to teach you how to do things in C
so they are smaller and faster.

>Atleast then should you belive that I have th potential to do the same
>thing in C but I am requesting it only because I dont have time.

Why don't you have time? School programs generally include enough time
to do the exercises. And the main point of assignments is to get *you*
to do the work so you understand it when it's done. Having someone else
give you the code might help you pass the course, but it wouldn't give
you the knowledge you're supposed to get from taking the course. That's
not doing you a favour in the long run, and it's definitely not fair to
your classmates or your future employers.

>Shall I mail you the MATLAB code of IMROTATE function written by me
>solely?
>Will atleast then you give me an equivalent C code?
>Or are u willing to conver it into C for me?

No.

By the way, I *have* written a C program to apply an arbitrary 2D
affine transformation to an image. Rotations are a subset of affine
transforms. It's not really much different internally except for the
user interface (you need to specify 6 numbers instead of 1). I learned
a lot in the process of building that program, particularly about
resampling methods better than bicubic.

Dave

Abhishek

unread,
Jul 9, 2006, 9:49:42 AM7/9/06
to
Thanks for the support.
Infact, the interesting thing is that I finished writing the C code
myself and by chance read this thread later to see if anything
inportant has been replied.
I really found it to be challenging to code it and learnt a lot about
the implentation (Especially the bicubic portion).
Thank god I read this thread LATER...:-)
With Regards,
Abhishek S

Dave Martindale

unread,
Jul 10, 2006, 2:30:09 PM7/10/06
to
"Abhishek" <abhishe...@gmail.com> writes:
>Infact, the interesting thing is that I finished writing the C code
>myself and by chance read this thread later to see if anything
>inportant has been replied.
>I really found it to be challenging to code it and learnt a lot about
>the implentation (Especially the bicubic portion).

That's what a well-designed homework assignment should do - you had to
learn something new to complete it. Aren't you glad now you did it
yourself, rather than getting already-written code from someone else?

Although this may seem a strange way of looking at it now, once you've
finished the course and your whole program, nobody will care what grade
you got in this course. They will only care what you actually *know*.

I've worked at a number of jobs over about 20 years, and no interviewer
ever asked me what marks I got in any of my courses. Nobody cared that
all of my knowledge of certain fields was acquired outside of the
classroom, either. They just cared about what I knew, what I had done
already, and what I could do for them if they hired me.

So the only lasting value of the assignment is what you figured out
while doing it, not what mark you got. It doesn't make sense to skip
the valuable part (the learning) in order to get a good mark fast.

Dave

Bart van der Wolf

unread,
Jul 12, 2006, 8:40:31 PM7/12/06
to

"Dave Martindale" <da...@cs.ubc.ca> wrote in message
news:e8u6bh$19n$1...@swain.cs.ubc.ca...
SNIP

> Although this may seem a strange way of looking at it now, once
> you've finished the course and your whole program, nobody will
> care what grade you got in this course. They will only care what
> you actually *know*.

Hear, hear. However, that presumes some usable knowledge from Human
Resources (or whatever title they adopted) departments. Sadly, some HR
departments seem to be lacking in (attracting) knowledge themselves
...
Nevertheless, you are right, knowledge/intellect is not the same as
grades.

Bart

Dave Martindale

unread,
Jul 13, 2006, 1:43:27 AM7/13/06
to
"Bart van der Wolf" <bvd...@no.spam> writes:

>"Dave Martindale" <da...@cs.ubc.ca> wrote in message
>news:e8u6bh$19n$1...@swain.cs.ubc.ca...
>SNIP
>> Although this may seem a strange way of looking at it now, once
>> you've finished the course and your whole program, nobody will
>> care what grade you got in this course. They will only care what
>> you actually *know*.

>Hear, hear. However, that presumes some usable knowledge from Human
>Resources (or whatever title they adopted) departments. Sadly, some HR
>departments seem to be lacking in (attracting) knowledge themselves
>...

It also depends on who does the interviewing. When I was interviewed
for my current position, I talked to one or two people from HR about
company polices, etc - stuff like vacation, medical plans, intellectual
property - for perhaps half an hour. I spent perhaps another two hours
talking to technical people, about 10 of them - people I'd be directly
working with or under if I was hired. It was the technical people who
decided whether to hire me - not HR. That was true of my previous job
as well.

Now, when I applied to enter a graduate degree program at a university,
*they* wanted to know what my previous courses and marks had been.
That seems legitimate - if you want to be a student, they want evidence
that you've been good at being a student in the past. But none of the
Real World job interviews asked about marks.

Dave

Tboy

unread,
Aug 1, 2006, 4:42:09 AM8/1/06
to
Greetings
Some of you fail to understand that there are some people who would
rather learn by examples. For me, if I request help by way of a
complete solution to my problem, its rather to break it down myself and
understand the bits. I think it is faster that way. It has always been
the way for me to learn stuff. I take a complete working solution,
break it down and implement it in my own way. So sometimes rather than
writing long chapters about what people have already done and blah blah
blah,,, just give the damn code if you have it! It makes life easier.
I think there should be separate groups for people who think the same
as me to exchange ideas ( complete codes if possible) and learn FASTER
!

Cheers

Theo

vonschwartzwalder

unread,
Aug 1, 2006, 10:22:20 AM8/1/06
to
I like to learn by example, as well. That said, there are some who
post to this group who are obviously looking for quick answers to
homework problems. They want the result without doing any work. They
are cheating their fellow students, their teachers, their future
employers and themselves. I have very little patience with a student
that is not willing to do a little research. It gets even worse when
said posters don't ask politely, and then get incensed when they don't
get what they want right away. In some cases I have taken their
question, typed it into Google, and gotten the answer they were looking
for right away. How much work do you think they did?

It's not really hard to tell which posters are the worst offenders.
There are some really good recent examples.

I personally have supplied complete code to people I thought had a
legitimate need. I have also spent a lot of time off line with others
who were actually learning. Those who are so obviously lazy students
get suggestions to do a little research.

duane

Bob

unread,
Aug 2, 2006, 3:04:03 PM8/2/06
to

Tboy wrote:
> I think there should be separate groups for people who think the same
> as me to exchange ideas ( complete codes if possible) and learn FASTER


Why don't you try Myspace.com?

Bob

qasim...@gmail.com

unread,
Jan 8, 2015, 3:15:42 AM1/8/15
to
Abhishek i also need C function of imrotate in my research work. if you have imrotate matlab code then send me the matlab code, i will port it to C++ and send you back C++ code.
my email id is: qasim....@hotmail.com
0 new messages