[Insight-users] Triangular Pixels

Dženan Zukić dzenanz at gmail.com
Tue Jun 28 03:33:25 EDT 2011


typedef itk::Image<unsigned char,2> ImageType; //this is, by definition,
rectangular pixel image
but when you show it on screen, instead of painting the pixels as small
rectangles you can paint them as small triangles. And that depends on which
visualization package are you using (Qt, VTK, etc). But I have never heard
of a package that has an option to treat pixels as triangles, so you would
have to hand code a lot of stuff.

I just checked git source of ITK4, the only mention of sparse there is
related to sparse matrices.

But if you think you need sparse images AND triangular pixels, I am almost
sure you are trying to solve something the wrong way.

HTH,
Dženan

2011/6/28 hanifa mohamed <hanifa_email at yahoo.com.sg>

> Hi,
> Thanks for the reply.
> " You may visualize it as triangles for some purpose, but then you would
> have to fill the empty space somehow, using black color perhaps."
>
> Sorry , I dont really understand the above statement.
> typedef itk::Image<unsigned char,2> ImageType; //What would I have to
> change here ???
> What do you mean by filling the empty space ?
>
> Do you think support for SparseImages will increase in the near future ?
>
> Regards
>
> ------------------------------
> *From:* Dženan Zukić <dzenanz at gmail.com>
> *To:* hanifa mohamed <hanifa_email at yahoo.com.sg>
> *Cc:* itk <insight-users at itk.org>
> *Sent:* Tuesday, 28 June 2011 12:15 AM
> *Subject:* Re: [Insight-users] Triangular Pixels
>
> In ITK, pixels are defined to be rectangular. It is the only
> representation. You may visualize it as triangles for some purpose, but then
> you would have to fill the empty space somehow, using black color perhaps.
> It is dependent on what you want to achieve.
>
> Sparse images are not currently supported (except maybe for a few isolated
> filters).
>
> HTH,
> Dženan
>
> On Mon, Jun 27, 2011 at 10:18, hanifa mohamed <hanifa_email at yahoo.com.sg>wrote:
>
> Hi all,
>          I was going through itk, and was wondering whether it is possible
> to represent (triangular or any n-shaped polygons) as pixels in itk. The
> Image class has pixels in the default squarish pixel shape.
>
> Firstly, I would like know whether is possible in the first place .
> Secondly, are there any native classes in itk, which can accomplish this ?
> Can anyone guide me in the some sort of direction?
>
> It would be great if someone could also help in this other thread, I posted
> last week.
> http://www.itk.org/pipermail/insight-users/2011-June/041504.html
>
> Thanks in advance again, guys.
>
> Regards
>
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110628/9d0ead95/attachment.htm>


More information about the Insight-users mailing list