Results 1 to 4 of 4
- 11-16-2012, 04:12 PM #1
Member
- Join Date
- Nov 2012
- Posts
- 11
- Rep Power
- 0
Need help w/ question based on Copying Pixels
A Picture has H rows of Pixels, W columns of Pixels, and W is an even number, like W is 2N. Here, N is the whole number that is exactly 1/2 of W. How many pixels are copied when the Picture is mirrored along the vertical line through its middle?
I know the equation is (Width * Height) / 2
I wrote a program to keep count of all the pixels.
I tested different pictures to see if I would get the same answer but, I didn't.
Clearly each picture has different number of pixels.
Am I on the right track with the question?
- 11-16-2012, 06:28 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Re: Need help w/ question based on Copying Pixels
All the pixels in the image are copied; try it with a minimal image: 1 row by 2 columns; both pixels are swapped.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 11-17-2012, 01:31 AM #3
Member
- Join Date
- Nov 2012
- Posts
- 11
- Rep Power
- 0
Re: Need help w/ question based on Copying Pixels
So I should add another loop to through the columns again?
- 11-17-2012, 09:25 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
help with some pixels
By HelloWorld1234 in forum New To JavaReplies: 13Last Post: 07-09-2012, 12:58 AM -
Using MVC architecture... file input question for a Swing-based GUI.
By AWJustAGuy in forum AWT / SwingReplies: 2Last Post: 04-26-2012, 05:59 AM -
Question based on MVC - require responses ASAP please
By icedy in forum New To JavaReplies: 1Last Post: 03-13-2012, 12:58 AM -
i need an example of JSR179 ((Location based Ser)implementation for CDC based device
By talk_to_vivekmishra in forum CDC and Personal ProfileReplies: 3Last Post: 12-30-2010, 10:07 AM -
array-based implementation question
By intelli in forum New To JavaReplies: 1Last Post: 04-18-2009, 05:18 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks