Software Requirements Specification

ruralrompΛογισμικό & κατασκευή λογ/κού

2 Δεκ 2013 (πριν από 3 χρόνια και 9 μήνες)

80 εμφανίσεις

1
/
9

UNIVERSITY

OF

APPLIED

SCIENCES

ASCHAFFENBURG











Software

Requirements

Specification




Project:

Pixelbending_DFT




Phase:

Requirements

Specification








Authors:


Matthias

Klement


Robin

Reusch

Christoph

Tippmann


Thomas

Metz


Carsten

Ergler


Re
gine

Renkel



Documentname:

AB
-
Pixelbender
-
SRS
-
1


Version:

1.0


Creation

date:

07.04.2013


File:

https://www.h
-
ab.de/info/Gockel/Informatik
-
III
-
2013/Pixelbender/

2
/
9

Modifications



Document

Status



Version

Status

Creation

Date

Editor

Modifications

1.0

Plann
ed

05.04.2013

Thomas

Metz

Initial

Document





































(Status

::=

planned,

under

construction,

presented,

accepted)







3
/
9


TABLE

OF

CONTENTS



1 Introduction

................................
................................
................................
..............

4

1.1 Purpose

................................
................................
................................
.............

4

1.2 Scope

................................
................................
................................
................

4

1.3 Definition, acronyms a
nd abbreviations

................................
.............................

4

1.4 References

................................
................................
................................
........

4

1.5 Overview

................................
................................
................................
............

5

2 General description
................................
................................
................................
..

6

2.1 Product perspective

................................
................................
...........................

6

2.2 Product functions

................................
................................
...............................

6

2.3 User characteristics

................................
................................
...........................

6

2.4 General constraints

................................
................................
............................

6

2.5 Assumptions and dependencies

................................
................................
.........

6

3 Specific requirements

................................
................................
...............................

7

3.1 Funct
ional requirements

................................
................................
....................

7

3.2 External interface requirements

................................
................................
..........

8

3.2.1 User interfaces
................................
................................
.............................

8

3.2.2 Hardware interfaces

................................
................................
.....................

8

3.2.3 Software interfaces

................................
................................
......................

8

3.2.4 Communication interfaces

................................
................................
...........

8

3.3 Performance requirements

................................
................................
.................

8

3.4 Design constraints

................................
................................
..............................

8

3.4.1 Standards complia
nce

................................
................................
.................

8

3.4.2 Hardware limitations

................................
................................
....................

8


3.4.3
Software l
imitations


................................
................................
......................

9

3.5 Software systems attributes

................................
................................
...............

9


3.5.1 Efficiency

................................
................................
................................
......

9


3.5.2 Compatibility

................................
................................
................................
.

9


3.5.3 Flexibility

................................
................................
................................
.......

9


3.5.4 Usability

................................
................................
................................
........

9

3.6 Other requirements

................................
................................
................................
...........

9

4
/
9


1

Introduction



1.1

P
urpose


This

document

states

the

requirements

of

a

Discrete

Fourier

Transform

(DFT)

for

transforming

images

of

various

formats.

The

algorithm

is

realized

with

Adobe

Pixelbender

toolkit.



1.2

Scope


Some

pictures

have

faults

like

unwanted

shadows

and

need

to

b
e

edited

in

order

to

look

better,

others

may

appear

better

with

certain

types

of

filters

applied

to

them.

Most

of

these

editing

operations

are

easier

to

perform

after

the

image

has

been

transformed

into

its

frequency

band.

For

this

purpose

an

algorithm

wil
l

be

developed

which

reads

the

image

into

an

array

and

then

transforms

it

with

a

Discrete

Fourier

Transform.

The

script

will

also

be

able

to

perform

a

transformation

back

into

the

band

a

picture

is

usually

viewed

in.


1.3

Definition,

a
cronyms

and

a
bbreviations



DFT


Discrete

Fourier

Transform

IDE


Integrated

Development

Environment

XML


Extensible

Markup

Language

JPG


Image

compression

format

PNG


Portable

Network

Graphics

GUI


Graphic

User

Interface



1.4

References



[Online

source

1]


http://helpx.adobe.com/de/x
-
productkb/policy
-
pricing/system
-
requirements
-
photoshop.html#main_Photoshop_CS5_system_requirements


[Onlin
e

source

2]


https://www.adobe.com/content/dam/Adobe/en/devnet/pixelbender/pdfs/pixelbender_
guide.pdf










5
/
9



1.5

Overview



The

SRS

will

specify

in

det
ail

the

software

requirements

for

the

DFT

and

inverse

DFT.


Section

2

presents

a

general

description

of

the

DFT

and

inverse

DFT

and

it

s

relationship

within

the

operating

environment

(computer

and

external

peripherals

and

systems)

.

A

complete

list

and

des
cription

of

the

product

functions

and

features

will

be

provided.

The

type

of

user

and

user

characteristics

will

be

discussed.

This

Section

also

provides

a

discussion

of

any

general

constraints

imposed

on

the

product

and

any

assumptions

that

are

made

regard
ing

the

operating

environment

of

the

product.


Section

3

will

detail

the

software

requirements

of

the

product

DFT

and

inverse

DFT.

The

behavioral

requirements

of

the

product

DFT

and

inverse

DFT

and

operating

environment

will

be

discussed.

The

external

inte
rface,

the

hardware

interfaces,

the

software

interfaces,

and

the

communication

interfaces

of

the

product

will

be

outlined.

Performance

requirements

will

be

discussed

in

section

3.

Included

in

this

discussion

are

operational

requirements,

exception

handling
,

and

testing

requirements.

Design

constraints

concern

for

the

design

phase

of

the

product

development

will

be

addressed.

Section

3

also

describes

the

following

product

attributes:

availability,

security,

maintainability,

transferability

and

portability.

6
/
9


2

General

d
escription



2.1

Product

p
erspective


The

product

will

be

developed

as

a

PlugIn

for

Adobe

Photoshop.


2.2

Product

f
unctions


The

algorithm

supplies

the

following

features:



Detect

image

size



Transformation

by

the

DFT



Inverse

transformation



2.3

User

c
haracter
istics


The

Photoshop

user

does

not

need

any

background

knowledge

on

how

to

perform

a

DFT

on

an

image.

The

GUI

is

Adobe

Photoshop

and

the

DFT

a

simple

PlugIn

for

the

user

to

be

able

to

efficiently

edit

pictures

in

the

frequency

band

and

inversely

transform

the

DFT

with

the

made

changes.



2.4

General

c
onstraints


The

language

of

all

documents,

the

code

and

the

GUI

is

English.

A

usage

of

Open

Source

packages

is

possible.


2.5

Assumptions

and

d
ependencies

The

software

will

be

developed

with

Adobe

Pixelbender

Toolkit

2

and

utilized

as

a

PlugIn

in

Adobe

Photoshop

CS5.

The

Operating

system

is

a

fully

up

to

date

version

of

Microsoft

Windows

7

32bit/64bit
,
Windows XP service pack 3 or Windows Vista Home Premium, Business, Ultimate
and Enterprise service pack 1
which

has

to

match

the

Photoshop

version

in

order

to

work

properly.

Alternatively

Mac

OS

X

v10.5.7

or

v10.6

may

be

used.



7
/
9

3

Specific

r
equirements


3.1

Functional

r
equirements


The

DFT

algorithm

provides

the

following

functions

ordered

in

the

usual

way

used

to

edit

pictures
:


3.1.1

Picture acquisition

Purpose:



The

user

provides

the

to

be

transformed

image

by

loading

it

into




the

Photoshop

GUI.

Processing:


Photoshop

loads

the

picture

and

makes

it

available

for

editing.

Inputs:



The

user

selects

the

image

of

his

choice

in

a

Windows

Explorer




window.


3.1.2

Picture

recognition

Purpose:



Size,

format

and

compression

have

to

be

recognized

by

the




software.

Inputs:



The

user

starts

the

DFT

PlugIn

up

and

requests

a

transformation




of

the

image.

Processing:


A

duplicat
e

of

the

image

is

created

and

will

serve

as

memory

for




thetransformed

data.

The

original

image

is

kept

for

the

color




information

it

contains.


3.1.3

Transformation

Purpose:



Creating

a

frequency

band

image

of

the

provided

picture.

Processing:


Done

by

a

numeric

algorithm

carrying

out

the

Discrete

Fourier




Transform

for

all

the

pixels

in

duplicated

image.

After

finishing




the

image

will

be

displayed

and

ready

for

all

editing

tasks.

Inputs:



No

User

input

required,

task

will

be

performed

automatic
ally

after




the

initiation

of

the

DFT

by

the

user.


3.1.4

Inverse

Transformation

Purpose:



Creating

black

and

white

picture

with

all

the

made

alternations




from

the

duplicate

Processing:


Done

by

a

numeric

algorithm

carrying

out

the

inverse

Discrete




Fourier

Transform

for

all

the

pixels

in

the

duplicate.

A

copy

of

the




duplicate

is

needed

as

memory

for

the

inverse

transformation.

Inputs:



The

user

will

have

to

request

an

inverse

DFT

for

the

process

to




be

started.


3.1.5

Coloring

the

resulting

i
mage

Purpose:



Applying

the

color

that

was

lost

during

the

transformation.

Processing:


Carried

out

by

an

algorithm

that

uses

the

original

colored

image




to

pass

the

color

information

to

the

inversely

transformed

picture.

Inputs:



No

user

action

requir
ed.

This

step

will

follow

automatically

after




the

inverse

transformation

is

completed.



8
/
9

3.2

External

i
nterface

r
equirements

3.2.1

User

i
nterfaces


The User interface is Adobe Photoshop.

When the DFT is selected a parameter
which distinguishes between transformat
ion and inverse transformation is displayed.


3.2.2

Hardware

i
nterfaces


The PlugIn is fully operational with the use of a mouse


3.2.3

Software

i
nterfaces


The

DFT

is

a

PlugIn

for

the

image

editing

software

Adobe

Photoshop

CS5.


3.2.4

Communication

i
nterfaces


No

communica
tion

interfaces

are

used

by

the

product.


3.3

Performance

r
equirements

The

DFT

algorithm

is

able

to

transform

one

image

at

a

time

and

does

not

support

simultaneous

transformations.





3.4

Design

c
onstraints


3.4.1

Standards

c
ompliance


The

code

follows

the

programming

guidelines

listed

in:


[Online

source

2]

3.4.2

Hardware

l
imitations


The system the DFT will be used on requires the ability to run Adobe Photoshop

CS5 .
The

hardware

requirements

are for Personal Computers:


Intel®

Pentium®

4
-

or

AMD

Athlon®

64



processor,

1

GB

RAM

and

OpenGL

GPU

with

16
-
Bit

Color

and

256

MB

VRAM.



For

Apple

computers:


Intel

Multicore

processor,

1

GB

RAM

and

OpenGL

GPU

with

16
-
Bit

Color

and

256

MB

VRAM



Also

viewable

at:

[Online

source

1]


9
/
9

3.4.3

Software l
imitations


To ensure a sustained functio
n the maximum picture
-

and memory size is limited.


For PNG:

-

1500x1500 pixels


-

3072 Kilobytes


For JPG:

-

2500x2500 pixels


-

3072 Kilobytes

3.5

Software

s
ystems

a
ttributes



3.5.1

Efficiency

With the hardware requirements stated by Adobe for Adobe Photos
hop CS5 the DFT

and the software limitations stated a transformation requires 20 seconds processing
time.



3.5.2

Compatibility

Pixel Bender is only able
to work with JPG and PNG formats. Due to the maximum
length of a float point unit in Pixel Bender of 3
2 Bit the maximum color depth is 32 Bit,

making each channel an 8
-
Bit value.


3.5.3

Flexibility

The

algorithm

is

open

source

software

and

accessible

for

everybody.

It

may

be

used

or

altered

in

any

way

with

the

free

tools.



3.5.4

Usability

The

installat
ion

of

the

PlugIn

is

a

simple

drag

and

drop

operation

into

the

Adobe

Photoshop

CS5

program

directory.

The

functions

can

be

accessed

over

the

GUI

of

Photoshop.


3.6

Other

r
equirements



3.6.1

Program

sequence

An

inverse

transformation

can

only

be

performed

on

a

frequency

band

image.

The

user

has

to

transform

an

image

first

or

specify

the

loaded

image

as

a

frequency

band

image.


3.6.2
Units

The

unit

for

every

calculation

will

be

1

Pixel.