Line 13: | Line 13: | ||
<!-- Question format: ;'''Q - QUESTION HERE''' | <!-- Question format: ;'''Q - QUESTION HERE''' | ||
:A - ANSWER HERE --> | :A - ANSWER HERE --> | ||
− | Q: How do you return the struct pixel c[4] as an output of the ConnectedNeighbors routine, when the function is type void and the variable isn't passed in as a pointer? | + | ;'''Q: How do you return the struct pixel c[4] as an output of the ConnectedNeighbors routine, when the function is type void and the variable isn't passed in as a pointer? |
+ | :A: I would say the example has nothing needed to be returned. The struct is made like a linked list with pointers to neighbors. However, you could rewrite the structure anyway you want and make it work, too. This could involve in passing the address to make the actual component and push and pop the pixels from the original image. | ||
---- | ---- | ||
[[2013_Spring_Image_Processing_ECE_637_Bouman|Back to Spring 2013 ECE637]] | [[2013_Spring_Image_Processing_ECE_637_Bouman|Back to Spring 2013 ECE637]] | ||
[[Category:Image ProcessingECE 637Spring2013Bouman]] | [[Category:Image ProcessingECE 637Spring2013Bouman]] | ||
[[Category:ECE637]] | [[Category:ECE637]] |
Revision as of 09:39, 29 January 2013
Discussion for Lab 3
Additional Information
Information for Segmentation
Information for memory management
- http://stackoverflow.com/questions/2672085/c-static-array-vs-dynamic-array
- http://en.wikipedia.org/wiki/Linked_list
Q&A Section
- Q: How do you return the struct pixel c[4] as an output of the ConnectedNeighbors routine, when the function is type void and the variable isn't passed in as a pointer?
- A: I would say the example has nothing needed to be returned. The struct is made like a linked list with pointers to neighbors. However, you could rewrite the structure anyway you want and make it work, too. This could involve in passing the address to make the actual component and push and pop the pixels from the original image.