[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #9712] [octave forge] (image) new function
From: |
Carnë Draug |
Subject: |
[Octave-patch-tracker] [patch #9712] [octave forge] (image) new function bwpack |
Date: |
Wed, 31 Oct 2018 07:13:47 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #1, patch #9712 (project octave):
How does bwpack handle images that are more than 2 dimensions? Does the result
differ in big-endian and little-endian machines differ?
I think the code be made simpler by using bitpack. Something like this:
bitpack (BWP(:), 'uint32')
which may also make it faster since it removes the for loop.
You don't need to check if image islogical. Just cast it as logical and be
done.
I remember once writing this function but never finished because I found some
with bitpack. I don't remember what but I still have a unfinished patch where
I'm rewriting bitpack in core :/
I thought this function was only really useful with imerode and imdilate have
support for packed images which they don't.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?9712>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/