Reply by khalloud70 October 18, 20082008-10-18
Thx Mr Dale B. Dalrymple

yr advice help me to find what i want

that is
'Extracting Information from a Galois Array'
in the Communications Toolbox documentation.


>On Oct 18, 10:19 am, "khalloud70" <khallou...@gmail.com> wrote: >> I have an image ok?? >> its' dimension is 128*128 uint >> i want to encode this image???? >> so i use reed solomon encoding??ok till now?? >> the syntax of the encoding command is: >> rsenc(msg, n,k) ok?? >> the msg is is our image?? >> but we cant put it unless it is galois field >> so for example: r=gf(image,8) >> so command will be for example code=rsenc(r,n,k)?? >> okk >> same for decoding rsdec(code,138,128) >> my question is when i decode using the above command >> it suppose to return to its origninal diemnsion >> 128*128 uint......................(1) >> but it return to 128*128 gf?......(2) >> so how can i chnage(2) to (1) i mean from gf to uint >> inorder to be shown by imshow() >> hopw u understand what i mean?????? > >khalloud70 > >You might try looking for 'Extracting Information from a Galois Array' >in the Communications Toolbox documentation. > >You might also ask language specific questions in a language specific >group like comp.soft-sys.matlab. > >Dale B. Dalrymple >http://dbdimages.com >
Reply by Tim Wescott October 18, 20082008-10-18
On Sat, 18 Oct 2008 12:19:56 -0500, khalloud70 wrote:

> I have an image ok?? > its' dimension is 128*128 uint > i want to encode this image???? > so i use reed solomon encoding??ok till now??
Yes, you're fine so far.
> the syntax of the encoding > command is: rsenc(msg, n,k) ok??
Here is where you fall on your face so hard that you've left skid marks on your nose. Even after the skid marks are pointed out all you can do is demand answers to totally insufficient questions. YOU HAVE NOT SAID WHAT APPLICATION YOU ARE USING!!! DSP is a mathematical pursuit. Mathematics doesn't have "commands", it has equations and expressions. Applications have commands, which have syntax (syntaxes?). So until you illuminate your question with some information on the ---------> APPLICATION <---------- you are trying to do your --------------> DSP <-------------- with, we can't help you. -- snip --
> hopw u understand what i mean??????
I understand quite well that you are getting bent out of shape because you cannot fathom the reasons you are being asked gentle and polite questions that are aimed at helping you out of your self-made quandary. This leads me to make some judgments about your character (backed up with your use of cell-phony English in a context where you have a Whole Keyboard at your disposal). In general, when you are breaking new ground with both some new field of study _and_ a new application (or features thereof), it is a very good idea to break your inquiry into smaller chunks. I.e., you are decimating, compressing, encoding, decoding and decompressing, and the entire chain doesn't work. So try just encoding and decoding random data, then try compressing and decompressing random images, then only when you are confident with the various pieces should you try putting them together. You also seem to be making the error of thinking that knowing how to fondle the application is equivalent to understanding the subject. It isn't, unless the application _is_ the subject. Since this is a DSP group, I'll say that's not the case, and you need to separate out that, as well. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com Do you need to implement control loops in software? "Applied Control Theory for Embedded Systems" gives you just what it says. See details at http://www.wescottdesign.com/actfes/actfes.html
Reply by Jerry Avins October 18, 20082008-10-18
khalloud70 wrote:
> I have an image ok?? > its' dimension is 128*128 uint > i want to encode this image???? > so i use reed solomon encoding??ok till now??
Not really. I don't know what program or library you use.
> the syntax of the encoding command is: > rsenc(msg, n,k) ok??
What is rsenc?
> the msg is is our image??
So you could as well write rsenc(image, n,k)?
> but we cant put it unless it is galois field > so for example: r=gf(image,8)
So now you converted to Galois field. Where do you convert back?
> so command will be for example code=rsenc(r,n,k)?? > okk > same for decoding rsdec(code,138,128)
I guess you mean rsdec(code,128,128).
> my question is when i decode using the above command > it suppose to return to its origninal diemnsion > 128*128 uint......................(1)
Who said? You encoded a Galois field, so that's what you expect to get back when you decode.
> but it return to 128*128 gf?......(2)
Why is that surprising?
> so how can i chnage(2) to (1) i mean from gf to uint > inorder to be shown by imshow()
I don't know. It's your tool. I don't know what program it is.
> hopw u understand what i mean??????
I think I do. Good luck. Jerry -- Engineering is the art of making what you want from things you can get. &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;
Reply by dbd October 18, 20082008-10-18
On Oct 18, 10:19 am, "khalloud70" <khallou...@gmail.com> wrote:
> I have an image ok?? > its' dimension is 128*128 uint > i want to encode this image???? > so i use reed solomon encoding??ok till now?? > the syntax of the encoding command is: > rsenc(msg, n,k) ok?? > the msg is is our image?? > but we cant put it unless it is galois field > so for example: r=gf(image,8) > so command will be for example code=rsenc(r,n,k)?? > okk > same for decoding rsdec(code,138,128) > my question is when i decode using the above command > it suppose to return to its origninal diemnsion > 128*128 uint......................(1) > but it return to 128*128 gf?......(2) > so how can i chnage(2) to (1) i mean from gf to uint > inorder to be shown by imshow() > hopw u understand what i mean??????
khalloud70 You might try looking for 'Extracting Information from a Galois Array' in the Communications Toolbox documentation. You might also ask language specific questions in a language specific group like comp.soft-sys.matlab. Dale B. Dalrymple http://dbdimages.com
Reply by khalloud70 October 18, 20082008-10-18
I have an image ok??
its' dimension is 128*128 uint
i want to encode this image????
so i use reed solomon encoding??ok till now??
the syntax of the encoding command is:
rsenc(msg, n,k) ok??
the msg is is our image??
but we cant put it unless it is galois field
so for example: r=gf(image,8)
so command will be for example code=rsenc(r,n,k)??
okk
same for decoding rsdec(code,138,128)
my question is when i decode using the above command 
it suppose to return to its origninal diemnsion
128*128 uint......................(1)
but it return to 128*128 gf?......(2)
so how can i chnage(2) to (1) i mean from gf to uint
inorder to be shown by imshow()
hopw u understand what i mean??????
Reply by Jerry Avins October 18, 20082008-10-18
khalloud70 wrote:
>> khalloud70 wrote: >>> I have image 256*256 , i compressed it using the Block Processing > 'block' >>> to be 128*128, and i want to encode it by reed solomon . >>> so i export it to the workspace using yout block >>> and encode it by rsenc as follows: >>> p=gf(yout,8) >>> code=rsenc(p,138,128) >>> d=rsdec(code,138,128) >>> and this works fine >> How do you know? I have known programmers who believed that a program >> was bug free if it compiled without error. >> >>> but i want now to reconstruct the image after it had been decoded >>> as variables , d and code are of type GF >>> so my question how can i extract the image again after it had been >>> decoded >>> >>> waitng for yr help soon >> Do you want to know how to decompress it, or what? >> >> Jerry >> -- >> Engineering is the art of making what you want from things you can get.>> now , i have a decoded image, its type is GF, (galois field) > for example:image =128*128 gf not integer or a known format of the image > when i make imshow(image,[0 255]) > it givee me an error , saying that: > Error using ==> iptcheckinput > Function IMAGEDISPLAYPARSEINPUTS expected its first input, I, > to be one of these types: > > double, single, uint8, uint16, uint32, int8, int16, int32, logical > > Instead its type was gf. > so what can i do to be in known image format > thx
I have no idea which program you use. What is "type gf"? Galois field?? Jerry -- Engineering is the art of making what you want from things you can get.
Reply by khalloud70 October 18, 20082008-10-18
>khalloud70 wrote: > > I have image 256*256 , i compressed it using the Block Processing
'block'
> > to be 128*128, and i want to encode it by reed solomon . > > so i export it to the workspace using yout block > > and encode it by rsenc as follows: > > p=gf(yout,8) > > code=rsenc(p,138,128) > > d=rsdec(code,138,128) > > and this works fine > >How do you know? I have known programmers who believed that a program >was bug free if it compiled without error. > > > but i want now to reconstruct the image after it had been decoded > > as variables , d and code are of type GF > > so my question how can i extract the image again after it had been > > decoded > > > > waitng for yr help soon > >Do you want to know how to decompress it, or what? > >Jerry >-- >Engineering is the art of making what you want from things you can get. >&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533; >now , i have a decoded image, its type is GF, (galois field)
for example:image =128*128 gf not integer or a known format of the image when i make imshow(image,[0 255]) it givee me an error , saying that: Error using ==> iptcheckinput Function IMAGEDISPLAYPARSEINPUTS expected its first input, I, to be one of these types: double, single, uint8, uint16, uint32, int8, int16, int32, logical Instead its type was gf. so what can i do to be in known image format thx
Reply by Jerry Avins October 18, 20082008-10-18
khalloud70 wrote:
 > I have image 256*256 , i compressed it using the Block Processing 'block'
 > to be 128*128, and i want to encode it by reed solomon .
 > so i export it to the workspace using yout block
 > and encode it by rsenc as follows:
 > p=gf(yout,8)
 > code=rsenc(p,138,128)
 > d=rsdec(code,138,128)
 > and this works fine

How do you know? I have known programmers who believed that a program
was bug free if it compiled without error.

 > but i want now to reconstruct the image after it had been decoded
 > as variables , d and code are of type GF
 > so my question how can i extract the image again after it had been
 > decoded
 >
 > waitng for yr help soon

Do you want to know how to decompress it, or what?

Jerry
-- 
Engineering is the art of making what you want from things you can get.
&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;
Reply by khalloud70 October 18, 20082008-10-18
I have image 256*256 , i compressed it using the Block Processing 'block'
to be 128*128, and i want to encode it by reed solomon .
so i export it to the workspace using yout block
and encode it by rsenc as follows:
p=gf(yout,8)
code=rsenc(p,138,128)
d=rsdec(code,138,128)
and this works fine

but i want now to reconstruct the image after it had been decoded
as variables , d and code are of type GF
so my question how can i extract the image again after it had been
decoded

waitng for yr help soon